The api I'm trying to access requests an authorisation header like this:
Authorization: INSERT_YOUR_TOKEN_HERE
Guzzle provides this:
Authorization: Basic <token>
When called with 'auth' => [null, <token>]
.
And the service returns the error, Token is wrong
.
When we manually curl like this:
Authorization: <token>
The token is accepted. Setting the authorization header manually just results in guzzle stripping it out of the request entirely.
How do we prevent the word basic being added by guzzle? (We are using version 6.1).