adding auth header to http c# code example
Example 1: http client include bearer
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", "Your Oauth token");
Example 2: httpclient add authorization header symphony
$response = $client->request('GET', 'https://...', [
'auth_basic' => ['the-username', 'the-password'],
// ...
]);