You are here

function hook_mailchimp_process_webhook in Mailchimp 8

Same name and namespace in other branches
  1. 7.5 mailchimp.api.php \hook_mailchimp_process_webhook()
  2. 7.2 mailchimp.api.php \hook_mailchimp_process_webhook()
  3. 7.3 mailchimp.api.php \hook_mailchimp_process_webhook()
  4. 7.4 mailchimp.api.php \hook_mailchimp_process_webhook()
  5. 2.x mailchimp.api.php \hook_mailchimp_process_webhook()

Perform an action during the firing of a Mailchimp webhook.

Refer to http://apidocs.mailchimp.com/webhooks for more details.

Parameters

string $type: The type of webhook firing.

array $data: The data contained in the webhook.

2 invocations of hook_mailchimp_process_webhook()
MailchimpWebhookController::endpoint in src/Controller/MailchimpWebhookController.php
mailchimp_process_webhook in ./mailchimp.module
Processes a webhook post from Mailchimp.

File

./mailchimp.api.php, line 55
Mailchimp module hook definitions.

Code

function hook_mailchimp_process_webhook($type, array $data) {
}