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