|
@@ 161-167 (lines=7) @@
|
| 158 |
|
* @throws InvalidTokenException |
| 159 |
|
* @throws RateLimitExceedException |
| 160 |
|
*/ |
| 161 |
|
public function getSpecificField($ipAddress, $field) |
| 162 |
|
{ |
| 163 |
|
$response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field); |
| 164 |
|
$response = $this->checkGeo($field, $response); |
| 165 |
|
|
| 166 |
|
return $response; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
/** |
| 170 |
|
* Get a specific field value of your own ip address. |
|
@@ 180-186 (lines=7) @@
|
| 177 |
|
* @throws InvalidTokenException |
| 178 |
|
* @throws RateLimitExceedException |
| 179 |
|
*/ |
| 180 |
|
public function getYourOwnIpSpecificField($field) |
| 181 |
|
{ |
| 182 |
|
$response = $this->makeCurlRequest($this::BASE_URL.$field); |
| 183 |
|
$response = $this->checkGeo($field, $response); |
| 184 |
|
|
| 185 |
|
return $response; |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
/** |
| 189 |
|
* Use the /geo call to get just the geolocation information, which will often be |