Webhook

Extends \MailChimp\Core\Model

Manage webhooks for a specific Mailchimp list.

package

Default

Methods

__construct

__construct(array $data = NULL) 
inherited

Arguments

$data

array

all

all() : \MailChimp\Response\WebhookListResponse

Get information about all webhooks for a specific list.

Response

\MailChimp\Response\WebhookListResponse

api

api() 
inherited

clear

clear() 
inherited

config

config() 
inherited

create

create() : \MailChimp\Models\Lists\Webhook

Create a new webhook for a specific list.

Response

\MailChimp\Models\Lists\Webhook

edit

edit() : \MailChimp\Models\Lists\Webhook

Update the settings for an existing webhook.

Response

\MailChimp\Models\Lists\Webhook

getAction

getAction( $name) 
inherited

Arguments

$name

Returns an ActionField object specified by `$action` and `$name`

getActionField(string $action, string $name) : \MailChimp\Core\ActionField
inherited

Arguments

$action

string

Action Name

$name

string

Field Name

Response

\MailChimp\Core\ActionField

Returns an array of action fields for an action

getActionFields(string $action) : array<mixed,\MailChimp\Core\ActionField>
inherited

Arguments

$action

string

Response

array<mixed,\MailChimp\Core\ActionField>

Returns Field Information

getField(string $name) : \MailChimp\Core\Field
inherited

Arguments

$name

string

Response

\MailChimp\Core\Field

Gets all allowed fields of a Data

getFields() : array
inherited

Response

array

Return API Path

getPath(\MailChimp\Core\string $child = NULL, array $params = NULL) : string
inherited

Arguments

$child

\MailChimp\Core\string

$params

array

Response

string

Return true if field exists or false otherwise

hasField(string $name) : boolean
inherited

Arguments

$name

string

Field name

Response

boolean

initialize

initialize() 
inherited

jsonSerialize

jsonSerialize() 
inherited

merge

merge( $data) 
inherited

Arguments

$data

methodName

methodName() : mixed

Response

mixed

methodName

methodName() : mixed

Response

mixed

own

own( $class,  $args) 
inherited

Arguments

$class

$args

parseActionPath

parseActionPath( &$params) 
inherited

Arguments

$params

read

read() : \MailChimp\Models\Lists\Webhook

Get information about a specific webhook.

Response

\MailChimp\Models\Lists\Webhook

reference

reference( &$field,  $name) 
inherited

Arguments

$field

$name

setApi

setApi(\MailChimp\Interfaces\MailChimpInterface &$api) 
inherited

setConfig

setConfig(\MailChimp\Interfaces\ConfigInterface &$config) 
inherited

Properties

API Endpoint

path : string
inherited
var

Type(s)

string

Path Parameters

params : array
inherited
var

Type(s)

array

Action Fields Configurations

action : array
inherited
var

Type(s)

array

Info for all action fields

_action : array
inherited
var

Type(s)

array

Data holder for predefined fields

data : object
inherited
var

Type(s)

object

Info for unreferenced action fields

_fields : array
inherited
var

Type(s)

array

API Query builder

builder : \MailChimp\Core\Builder
inherited

Fields for the model

fields : array
inherited
var

Type(s)

array

Reference map for fields

_reference : array
inherited
var

Type(s)

array

_api

_api : 
inherited

Type(s)

_config

_config : 
inherited

Type(s)

id

id : string

A string that uniquely identifies this webhook.

Type(s)

string

url

url : string

A valid URL for the Webhook.

Type(s)

string

events

events : \MailChimp\Data\WebhookEvents

The events that can trigger the webhook and whether they are enabled.

Type(s)

\MailChimp\Data\WebhookEvents

sources

sources : \MailChimp\Data\WebhookSources

The possible sources of any events that can trigger the webhook and whether they are enabled.

Type(s)

\MailChimp\Data\WebhookSources

list_id

list_id : string

The unique id for the list.

Type(s)

string