Modifying BMailApi

This commit is contained in:
Loann 2020-04-29 11:43:34 +02:00
parent f2a1053655
commit d59c5aa622
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ class BMailApi
try {
return $client->request('post', $url, [
'form_params' => $template,
'headers' => ['Authorization' => 'Bearer ' . $this->api_key]
'headers' => [
'Authorization' => 'Bearer ' . $this->api_key,
'Accept' => 'application/json'
]
])->getBody();
} catch(\Exception $e) {