question

Ghalib Soomro avatar image
Ghalib Soomro asked Frank Faustino Deactivated commented

Experiencing an 'Unauthorized credential' error when using the API to obtain and submit an Oauth Token

$getAccessToken = $client->request('GET', 'https://api.clover.com:443/oauth/token?client_id='.Session::get('client_id').'&client_secret='.$secret.'&code='.Session::get('code').'');
$access_token= json_decode($getAccessToken->getBody(), true);
$Authorization= 'Bearer '.$access_token['access_token'];
'headers' => [
    'Authorization'=>$Authorization,
    'X-RateLimit-tokenLimit'=>16
],
REST APIOAuthAPI Token
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

Welcome to the
Clover Developer Community