how to send token by header in guzzle code example
Example 1: guzzle bearer token
$newresponse = $basicauth->request(
'GET',
'api/1/curriculum',
['debug' => true],
['headers' =>
[
'Authorization' => "Bearer {$acceso->access_token}"
]
]
)->getBody()->getContents();
Example 2: guzzlehttp php basic auth
$client = new GuzzleHttp\Client();
$res = $client->request('GET', 'https://api.github.com/user', [
'auth' => ['user', 'pass']
]);