WebhooksModule
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WebhooksModule(
client):WebhooksModule
Parameters
Section titled “Parameters”client
Section titled “client”Returns
Section titled “Returns”WebhooksModule
Methods
Section titled “Methods”createWebhook()
Section titled “createWebhook()”createWebhook(
payload):Promise<any>
Parameters
Section titled “Parameters”payload
Section titled “payload”events
Section titled “events”string[]
string
secret?
Section titled “secret?”string
status?
Section titled “status?”string
string
Returns
Section titled “Returns”Promise<any>
deleteWebhook()
Section titled “deleteWebhook()”deleteWebhook(
id):Promise<any>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<any>
getWebhooks()
Section titled “getWebhooks()”getWebhooks():
Promise<any[]>
Returns
Section titled “Returns”Promise<any[]>
updateWebhook()
Section titled “updateWebhook()”updateWebhook(
id,payload):Promise<any>
Parameters
Section titled “Parameters”string
payload
Section titled “payload”events
Section titled “events”string[]
string
secret?
Section titled “secret?”string
status?
Section titled “status?”string
string
Returns
Section titled “Returns”Promise<any>