guzzle
This commit is contained in:
@@ -120,8 +120,8 @@ class Esi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Setup the new guzzle client
|
//Setup the new guzzle client
|
||||||
$client = new Client();
|
$client = new Client(['base_uri' => 'https://login.eveonline.com']);
|
||||||
$response = $client->request('POST', 'https://login.eveonline.com/v2/oauth/token', [
|
$response = $client->request('POST', '/v2/oauth/token', [
|
||||||
'headers' => [
|
'headers' => [
|
||||||
'Content-Type' => 'application/x-www-form-urlencoded',
|
'Content-Type' => 'application/x-www-form-urlencoded',
|
||||||
'Host' => 'login.eveonline.com',
|
'Host' => 'login.eveonline.com',
|
||||||
@@ -133,7 +133,7 @@ class Esi {
|
|||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|
||||||
dd($response->getBody());
|
dd(json_decode($response->getBody(), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
$authentication = new EsiAuthentication([
|
$authentication = new EsiAuthentication([
|
||||||
|
|||||||
Reference in New Issue
Block a user