1
0
Fork 0
mirror of synced 2024-07-06 07:00:56 +12:00

chore: updated Amazon Adapter Methods

This commit is contained in:
Christy Jacob 2020-01-18 09:49:10 +05:30
parent a7f0d16596
commit 1678021ce3

View file

@ -67,11 +67,13 @@ class Amazon extends OAuth
'POST', 'POST',
'https://api.amazon.com/auth/o2/token', 'https://api.amazon.com/auth/o2/token',
$headers, $headers,
'code=' . urlencode($code) . http_build_query([
'&client_id=' . urlencode($this->appID) . 'code' => $code,
'&client_secret=' . urlencode($this->appSecret). 'client_id' => $this->appID ,
'&redirect_uri='.urlencode($this->callback). 'client_secret' => $this->appSecret,
'&grant_type=authorization_code' 'redirect_uri' => $this->callback ,
'grant_type' => 'authorization_code'
])
); );
$accessToken = json_decode($accessToken, true); $accessToken = json_decode($accessToken, true);