Warum ist mein Authorization-Header, die mir einen 401 in Saufen?

Ich bin immer ein 401 auf Saufen 4.2 und das gleiche setup funktioniert auf den Postboten. - Code unten.

//Create a client with a base URL
    $client = new GuzzleHttp\Client(['base_url' => 'cloud.feedly.com/v3/streams/contents?streamId=user/user-id/category/global.all&count=1']);

    //Send a request to https://github.com/notifications
    $response = $client->get();

    //Auth
   $response->addHeader('Authorization', "auth-code");


    //send
    $r = $response->send();

   dd($r->json());

Der Fehler ist:

GuzzleHttp \ Exception \ ClientException (401) 
Client error response [url] cloud.feedly.com/v3/streams/contents?streamId=user/user-id/global.all&count=1 [status code] 401 [reason phrase] Unauthorized
InformationsquelleAutor Ali Gajani | 2014-08-20
Schreibe einen Kommentar