|
@@ 124-130 (lines=7) @@
|
| 121 |
|
* @throws InvalidTokenException |
| 122 |
|
* @throws RateLimitExceedException |
| 123 |
|
*/ |
| 124 |
|
public function getYourOwnIpDetails() |
| 125 |
|
{ |
| 126 |
|
$response = $this->makeCurlRequest($this::BASE_URL.'json'); |
| 127 |
|
$response = $this->jsonDecodeResponse($response); |
| 128 |
|
|
| 129 |
|
return new Host($response); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
/** |
| 133 |
|
* Get all the info about an ip address. |
|
@@ 141-147 (lines=7) @@
|
| 138 |
|
* @throws InvalidTokenException |
| 139 |
|
* @throws RateLimitExceedException |
| 140 |
|
*/ |
| 141 |
|
public function getFullIpDetails($ipAddress) |
| 142 |
|
{ |
| 143 |
|
$response = $this->makeCurlRequest($this::BASE_URL.$ipAddress); |
| 144 |
|
$response = $this->jsonDecodeResponse($response); |
| 145 |
|
|
| 146 |
|
return new Host($response); |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
/** |
| 150 |
|
* Get a specific field value. |