trait WebhookExtension

WebhookExtension trait.

This extension is supposed to be applied to Client class which provides a fetchResource method.

Traits

WebhookCallExtension trait.
WebhookHealthExtension trait.

Methods

getWebhookCall(string $spaceId, string $webhookId, string $webhookCallId)

Returns a WebhookCall resource.

getWebhookCalls(string $spaceId, string $webhookId, Query $query = null)

Returns a ResourceArray object containing WebhookCall resources.

ResourceInterface|ResourceArray
fetchResource(string $class, array $parameters, Query $query = null, ResourceInterface $resource = null)

No description

getWebhookHealth(string $spaceId, string $webhookId)

Returns an WebhookHealth resource.

getWebhook(string $spaceId, string $webhookId)

Returns a Webhook resource.

getWebhooks(string $spaceId, Query $query = null)

Returns a ResourceArray object containing Webhook resources.

Details

in WebhookCallExtension at line 33
getWebhookCall(string $spaceId, string $webhookId, string $webhookCallId)

Returns a WebhookCall resource.

Parameters

string $spaceId
string $webhookId
string $webhookCallId

See also

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

in WebhookCallExtension at line 47
getWebhookCalls(string $spaceId, string $webhookId, Query $query = null)

Returns a ResourceArray object containing WebhookCall resources.

Parameters

string $spaceId
string $webhookId
Query $query

See also

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

at line 26
ResourceInterface|ResourceArray fetchResource(string $class, array $parameters, Query $query = null, ResourceInterface $resource = null)

Parameters

string $class
array $parameters
Query $query
ResourceInterface $resource

Return Value

ResourceInterface|ResourceArray

getWebhookHealth(string $spaceId, string $webhookId)

Returns an WebhookHealth resource.

Parameters

string $spaceId
string $webhookId

See also

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

at line 36
getWebhook(string $spaceId, string $webhookId)

Returns a Webhook resource.

Parameters

string $spaceId
string $webhookId

See also

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

at line 49
getWebhooks(string $spaceId, Query $query = null)

Returns a ResourceArray object containing Webhook resources.

Parameters

string $spaceId
Query $query

See also

https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhooks/webhooks-collection