@@ 156-162 (lines=7) @@ | ||
153 | * This could returns an Host object if you call it with for the field |
|
154 | * \DavidePastore\Ipinfo\Ipinfo::GEO. |
|
155 | */ |
|
156 | public function getSpecificField($ipAddress, $field) |
|
157 | { |
|
158 | $response = $this->makeCurlRequest($this::BASE_URL.$ipAddress.'/'.$field); |
|
159 | $response = $this->checkGeo($field, $response); |
|
160 | ||
161 | return $response; |
|
162 | } |
|
163 | ||
164 | /** |
|
165 | * Get a specific field value of your own ip address. |
|
@@ 173-179 (lines=7) @@ | ||
170 | * This could returns an Host object if you call it with for the field |
|
171 | * \DavidePastore\Ipinfo\Ipinfo::GEO. |
|
172 | */ |
|
173 | public function getYourOwnIpSpecificField($field) |
|
174 | { |
|
175 | $response = $this->makeCurlRequest($this::BASE_URL.$field); |
|
176 | $response = $this->checkGeo($field, $response); |
|
177 | ||
178 | return $response; |
|
179 | } |
|
180 | ||
181 | /** |
|
182 | * Use the /geo call to get just the geolocation information, which will often be |