chore: updated Amazon Adapter Methods
This commit is contained in:
parent
a7f0d16596
commit
1678021ce3
1 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue