fix to index webhooks method (#372)

This commit is contained in:
Oleksii Rytov 2017-06-28 11:25:11 +02:00 committed by Tobias Nyholm
parent 273b48343d
commit ee35e40846

View File

@ -66,6 +66,7 @@ class IndexResponse implements ApiResponse
public static function create(array $data)
{
$self = new self();
$data = isset($data['webhooks']) ? $data['webhooks'] : $data;
if (isset($data['bounce'])) {
$self->setBounce($data['bounce']);
}