I have issue with Guzzle POST request
here's my code
$req = $client->request('POST', $endpoint, [
'headers' => [
'Content-Type' => 'application/json',
'Authorization' => 'Basic '.$this->api_credential
], $body);
its always response 401
"Please include your API key as an Authorization header"
do i have to encode base64 the credential ?
and its using basic authorization