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.

ResourceArray
getCalls(Query $query = null)

Returns a ResourceArray object containing WebhookCall resources.

getHealth()

Returns an WebhookHealth resource.

Details

at line 35
abstract protected string getSpaceId()

Returns the ID associated to the current space.

Return Value

string

at line 42
abstract protected string getWebhookId()

Returns the ID associated to the current webhook.

Return Value

string

at line 53
WebhookCall getCall(string $callId)

Returns a WebhookCall resource.

Parameters

string $callId

Return Value

WebhookCall

See also

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

at line 71
ResourceArray getCalls(Query $query = null)

Returns a ResourceArray object containing WebhookCall resources.

Parameters

Query $query

Return Value

ResourceArray

See also

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

at line 87
WebhookHealth getHealth()

Returns an WebhookHealth resource.

Return Value

WebhookHealth

See also

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