so i have a CURL request that looks like this (and it works):
curl -X GET -H "Authorization: Token 1234567890" http://api.website.com
tried translating it into Laravel Guzzle into something like this:
$client = new \GuzzleHttp\Client(['base_uri' => 'http://api.website.com']); $headers = ['Authorization' => 'Token 1234567890']; $response = $client->get($query_string, $headers); return $response;
but i'm getting a 500 error. i think there's something wrong in how i implemented the headers. sorry, very new in laravel and guzzle.