trait WebhookProxyExtension

WebhookProxyExtension trait.

This trait is an extension to the Webhook resource class. It is built here and included as a trait to better separate concerns. This trait provides shortcuts for fetching resources that belong to a webhook.

Properties

Client $client

Methods

string
getSpaceId()

Returns the ID associated to the current space.

string
getWebhookId()

Returns the ID associated to the current webhook.

getCall(string $callId)

Returns a WebhookCall resource.

getCalls(Query $query = null)

Returns a ResourceArray object containing WebhookCall resources.

getHealth()

Returns an WebhookHealth resource.

Details

at line 36
abstract protected string getSpaceId()

Returns the ID associated to the current space.

Return Value

string

at line 43
abstract protected string getWebhookId()

Returns the ID associated to the current webhook.

Return Value

string

at line 50
getCall(string $callId)

Returns a WebhookCall resource.

Parameters

string $callId

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-details

at line 64
getCalls(Query $query = null)

Returns a ResourceArray object containing WebhookCall resources.

Parameters

Query $query

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-call-overview

at line 78
getHealth()

Returns an WebhookHealth resource.

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls/webhook-health