public function MailchimpLists::getWebhooks in Mailchimp 8
Same name in this branch
- 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::getWebhooks()
- 8 lib/mailchimp-api-php/tests/src/MailchimpLists.php \Mailchimp\Tests\MailchimpLists::getWebhooks()
@inheritdoc
Overrides MailchimpLists::getWebhooks
File
- lib/
mailchimp-api-php/ tests/ src/ MailchimpLists.php, line 291
Class
- MailchimpLists
- Mailchimp Lists library test cases.
Namespace
Mailchimp\TestsCode
public function getWebhooks($list_id, $parameters = []) {
parent::getWebhooks($list_id, $parameters);
$response = (object) [
'webhooks' => [
(object) [
'id' => '37b9c73a88',
'url' => 'http://example.org',
'events' => (object) [
'subscribe' => TRUE,
'unsubscribe' => FALSE,
],
'sources' => (object) [
'user' => TRUE,
'api' => FALSE,
],
'list_id' => $list_id,
],
],
'total_items' => 1,
];
return $response;
}