Skip to content

Commit b65be3c

Browse files
committed
now uses guzzle
1 parent 3be7de8 commit b65be3c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Drivers/TelizeDriver.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ public function get($ip)
1717
{
1818

1919
try {
20-
$data = $this->requester->headers(['X-Mashape-Key' => array_get($this->config, 'key'), 'Accept' => 'application/json'])->url($this->getUrl($ip))->get()->json();
20+
$data = json_decode($this->guzzle->get($this->getUrl($ip), [
21+
'headers' => [
22+
'X-Mashape-Key' => array_get($this->config, 'key'),
23+
'Accept' => 'application/json'
24+
]
25+
])->getBody(), true);
2126
} catch (RequestException $e) {
2227
return [];
2328
}

0 commit comments

Comments
 (0)