You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,12 @@ Below are the methods supported in this class.
18
18
|---|---|
19
19
|open|Open the IP2Proxy BIN data for lookup. Please see the **Usage** section of the 3 modes supported to load the BIN data file.|
20
20
|close|Close and clean up the file pointer.|
21
-
|getPackageVersion|Get the package version (1 to 4 for PX1 to PX4 respectively).|
21
+
|getPackageVersion|Get the package version (1 to 10 for PX1 to PX10 respectively).|
22
22
|getModuleVersion|Get the module version.|
23
23
|getDatabaseVersion|Get the database version.|
24
24
|isProxy|Check whether if an IP address was a proxy. Returned value:<ul><li>-1 : errors</li><li>0 : not a proxy</li><li>1 : a proxy</li><li>2 : a data center IP address</li></ul>|
25
25
|getAll|Return the proxy information in array.|
26
-
|getProxyType|Return the proxy type. Please visit <ahref="https://www.ip2location.com/databases/px4-ip-proxytype-country-region-city-isp"target="_blank">IP2Location</a> for the list of proxy types supported|
26
+
|getProxyType|Return the proxy type. Please visit <ahref="https://www.ip2location.com/database/px10-ip-proxytype-country-region-city-isp-domain-usagetype-asn-lastseen-threat-residential"target="_blank">IP2Location</a> for the list of proxy types supported|
27
27
|getCountryShort|Return the ISO3166-1 country code (2-digits) of the proxy.|
28
28
|getCountryLong|Return the ISO3166-1 country name of the proxy.|
29
29
|getRegion|Return the ISO3166-2 region name of the proxy. Please visit <ahref="https://www.ip2location.com/free/iso3166-2"target="_blank">ISO3166-2 Subdivision Code</a> for the information of ISO3166-2 supported|
@@ -34,15 +34,16 @@ Below are the methods supported in this class.
| Constructor | Expect 3 input parameters:<ol><li>IP2Proxy API Key.</li><li>Package (PX1 - PX8)</li><li>Use HTTPS or HTTP</li></ol> |
45
-
| lookup | Return the proxy information in array.<ul><li>countryCode</li><li>countryName</li><li>regionName</li><li>cityName</li><li>isp</li><li>domain</li><li>usageType</li><li>asn</li><li>as</li><li>lastSeen</li><li>proxyType</li><li>isProxy</li></ul>|
45
+
| Constructor | Expect 3 input parameters:<ol><li>IP2Proxy API Key.</li><li>Package (PX1 - PX10)</li><li>Use HTTPS or HTTP</li></ol> |
46
+
| lookup | Return the proxy information in array.<ul><li>countryCode</li><li>countryName</li><li>regionName</li><li>cityName</li><li>isp</li><li>domain</li><li>usageType</li><li>asn</li><li>as</li><li>lastSeen</li><li>threat</li><li>proxyType</li><li>isProxy</li></ul> |
46
47
| getCredit | Return remaining credit of the web service account. |
47
48
48
49
@@ -61,7 +62,7 @@ Open and read IP2Proxy binary database. There are 3 modes:
Note: if you are getting error such as `Call to undefined function IP2Proxy\gmp_import()`, you probably did not have the module to install or enable in php.ini. You can check your php.ini to make sure that the module has been enabled.
@@ -123,7 +127,7 @@ Start your lookup by following codes:
123
127
require 'class.IP2Proxy.php';
124
128
125
129
// Lookup by Web API
126
-
$ws = new \IP2Proxy\WebService('YOUR_API_KEY', 'PX8', false);
130
+
$ws = new \IP2Proxy\WebService('YOUR_API_KEY', 'PX10', false);
0 commit comments