Modifying BMailApi
This commit is contained in:
parent
f2a1053655
commit
d59c5aa622
|
@ -33,7 +33,10 @@ class BMailApi
|
||||||
try {
|
try {
|
||||||
return $client->request('post', $url, [
|
return $client->request('post', $url, [
|
||||||
'form_params' => $template,
|
'form_params' => $template,
|
||||||
'headers' => ['Authorization' => 'Bearer ' . $this->api_key]
|
'headers' => [
|
||||||
|
'Authorization' => 'Bearer ' . $this->api_key,
|
||||||
|
'Accept' => 'application/json'
|
||||||
|
]
|
||||||
])->getBody();
|
])->getBody();
|
||||||
|
|
||||||
} catch(\Exception $e) {
|
} catch(\Exception $e) {
|
||||||
|
|
Loading…
Reference in New Issue