davidtsadler/ebay-sdk-examples

Error Status Code: 401 1001: Invalid access token new issue

Closed this issue · 1 comments

Status Code: 401 1001: Invalid access token Invalid access token. Check the value of the Authorization HTTP request header.

$service = new Services\InventoryService([
'authorization' => $config['sandbox']['oauthUserToken'],
'requestLanguage' => 'en-US',
'responseLanguage' => 'en-US',
'sandbox' => true
]);

+++++++++++++++++++++++++++++++++
$this->oAuthService = new Services\AccountService([
'authorization' => $this->getFreshToken()
]);

Exception (401)
%s: %s %s 1001 Invalid access token Invalid access token. Check the value of the Authorization HTTP request header.