WebhookProxyExtension
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
getHealth()
Returns an WebhookHealth resource.
Details
at line 35
abstract protected string
getSpaceId()
Returns the ID associated to the current space.
at line 42
abstract protected string
getWebhookId()
Returns the ID associated to the current webhook.
at line 53
WebhookCall
getCall(string $callId)
Returns a WebhookCall resource.
at line 71
ResourceArray
getCalls(Query $query = null)
Returns a ResourceArray object containing WebhookCall resources.
at line 87
WebhookHealth
getHealth()
Returns an WebhookHealth resource.