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