|
@@ 166-172 (lines=7) @@
|
| 163 |
|
* @throws RateLimitExceedException |
| 164 |
|
* @throws WrongIpException |
| 165 |
|
*/ |
| 166 |
|
public function getSpecificField($ipAddress, $field) |
| 167 |
|
{ |
| 168 |
|
$response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field); |
| 169 |
|
$response = $this->checkGeo($field, $response); |
| 170 |
|
|
| 171 |
|
return $response; |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
/** |
| 175 |
|
* Get a specific field value of your own ip address. |
|
@@ 186-192 (lines=7) @@
|
| 183 |
|
* @throws RateLimitExceedException |
| 184 |
|
* @throws WrongIpException |
| 185 |
|
*/ |
| 186 |
|
public function getYourOwnIpSpecificField($field) |
| 187 |
|
{ |
| 188 |
|
$response = $this->makeCurlRequest($this::BASE_URL.$field); |
| 189 |
|
$response = $this->checkGeo($field, $response); |
| 190 |
|
|
| 191 |
|
return $response; |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
/** |
| 195 |
|
* Use the /geo call to get just the geolocation information, which will often be |