1
0
Fork 0
mirror of synced 2024-07-01 20:50:49 +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',
'https://api.amazon.com/auth/o2/token',
$headers,
'code=' . urlencode($code) .
'&client_id=' . urlencode($this->appID) .
'&client_secret=' . urlencode($this->appSecret).
'&redirect_uri='.urlencode($this->callback).
'&grant_type=authorization_code'
http_build_query([
'code' => $code,
'client_id' => $this->appID ,
'client_secret' => $this->appSecret,
'redirect_uri' => $this->callback ,
'grant_type' => 'authorization_code'
])
);
$accessToken = json_decode($accessToken, true);