WebhookApiClient
Contains all the endpoints needed to manage webhooks.
Constructors
new WebhookApiClient()
new WebhookApiClient():
WebhookApiClient
Returns
Methods
createWebhookEndpoint()
static
createWebhookEndpoint(data
,config
?):Promise
<SCWebhookEndpointType
>
This endpoint creates a webhook endpoint and connects it to the given webhook events.
Parameters
Parameter | Type | Description |
---|---|---|
data | WebhookParamType | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCWebhookEndpointType
>
Source
deleteWebhookEndpoint()
static
deleteWebhookEndpoint(id
,config
?):Promise
<any
>
This endpoint deletes a Webhook Endpoint.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<any
>
Source
expireWebhookSigningSecret()
static
expireWebhookSigningSecret(id
,config
?):Promise
<SCWebhookEndpointType
>
This endpoint expires the secret associated with this endpoint.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCWebhookEndpointType
>
Source
getASpecificWebhookEndpoint()
static
getASpecificWebhookEndpoint(id
,config
?):Promise
<SCWebhookEndpointType
>
This endpoint retrieves a specific webhook endpoint using ID.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | number | |
config ? | AxiosRequestConfig <any > |
Returns
Promise
<SCWebhookEndpointType
>