Open
Description
Howdy, I am using this with GuzzleHttp Client class as follows:
$blogService = new Client([
'base_uri' => $baseBlogUrl . '/wp-json/wp/v2/',
'headers' => [
'Authorization' => 'Bearer ' . $result['access_token']
],
'debug' => true
]);
This is resulting in an error: {"code":"rest_authentication_no_header","message":"Authorization header was not found.","data":{"status":403}}
The debug for the request shows that the authorization header exists though:
POST /wp-json/wp/v2/users HTTP/1.1
Authorization: Bearer ACCESS_TOKEN_HERE
User-Agent: GuzzleHttp/6.4.1 curl/7.29.0 PHP/7.4.0RC6
Content-Type: application/json
Metadata
Metadata
Assignees
Labels
No labels