$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 ],