mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2025-02-11 10:49:23 +03:00
fix to index webhooks method (#372)
This commit is contained in:
parent
273b48343d
commit
ee35e40846
@ -66,6 +66,7 @@ class IndexResponse implements ApiResponse
|
|||||||
public static function create(array $data)
|
public static function create(array $data)
|
||||||
{
|
{
|
||||||
$self = new self();
|
$self = new self();
|
||||||
|
$data = isset($data['webhooks']) ? $data['webhooks'] : $data;
|
||||||
if (isset($data['bounce'])) {
|
if (isset($data['bounce'])) {
|
||||||
$self->setBounce($data['bounce']);
|
$self->setBounce($data['bounce']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user