I'm trying to figure out a way to make a request to a REST api using some PHP client.
Authorization: Token token="CREDENTIALS"
I can successfully curl it by using
$ curl -H 'Authorization: Token token="CREDENTIALS" https://uriexample.com
But I can't figure out a way to set this header in any PHP client I tried (Guzzle and Httpful).
Would anyone know how can I do this with ANY PHP client? I just don't wanna code this client from scratch :(