Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.74 KB

webhook.md

File metadata and controls

73 lines (46 loc) · 1.74 KB

Webhook

Get webhook Events

GET /webhooks/events.json

tw.webhooks.getEvents()

Get webhooks or webhook

GET /webhooks.json | /webhooks/{webhook_id}.json

tw.webhooks.get(webhook_id)

Create a Webhook

POST /webhooks.json

tw.webhooks.create(body)

Update a Webhook

PUT /webhooks/{webhook_id}.json

tw.webhooks.update(webhook_id, body)

Resume a Webhook

PUT /webhooks/{webhook_id}/resume.json

tw.webhooks.resume(webhook_id)

Pause a Webhook

PUT /webhooks/{webhook_id}/pause.json

tw.webhooks.pause(webhook_id)

Delete a webhook

DELETE /webhooks/{webhook_id}.json

tw.webhooks.delete(webhook_id)

Enable Webhooks

PUT /webhooks/enable.json

tw.webhooks.enable()

Disable Webhooks

PUT /webhooks/disable.json

tw.webhooks.disable()