You are here

public function MailchimpLists::deleteWebhook in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::deleteWebhook()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpLists.php \Mailchimp\Tests\MailchimpLists::deleteWebhook()

Deletes a webhook.

Parameters

string $list_id: The ID of the list.

string $webhook_id: The ID of the webhook.

array $parameters: Associative array of optional request parameters.

Return value

object

1 call to MailchimpLists::deleteWebhook()
MailchimpLists::deleteWebhook in lib/mailchimp-api-php/tests/src/MailchimpLists.php
@inheritdoc
1 method overrides MailchimpLists::deleteWebhook()
MailchimpLists::deleteWebhook in lib/mailchimp-api-php/tests/src/MailchimpLists.php
@inheritdoc

File

lib/mailchimp-api-php/src/MailchimpLists.php, line 573

Class

MailchimpLists
Mailchimp Lists/Audiences library.

Namespace

Mailchimp

Code

public function deleteWebhook($list_id, $webhook_id, $parameters = []) {
  $tokens = [
    'list_id' => $list_id,
    'webhook_id' => $webhook_id,
  ];
  return $this
    ->request('DELETE', '/lists/{list_id}/webhooks/{webhook_id}', $tokens, $parameters);
}