Contains web service functions for operating on webhooks.
GET /#account_id/webhooks
Get a basic listing of all webhooks associated with an account.
| Returns: | A list of webhooks that belong to the given account. |
|---|
GET /#account_id/webhooks/#webhook_id
Get information for a specific webhook belonging to a specific account.
| Returns: | Details for a single webhook |
|---|---|
| Raises : | Http404 if no webhook found |
GET /#account_id/webhooks/events
Get a listing of all event types that are available for webhooks.
| Returns: | A list of event types and descriptions |
|---|
POST /#account_id/webhooks
Create an new webhook.
If method is ‘POST’, the data will be posted to the given URL as a blob of JSON. If the method is ‘GET’ the data will be added to the query string of your URL as a url encoded blob of JSON in a key called ‘payload’.
| Parameters: |
|
|---|
PUT /#account_id/webhooks/#webhook_id
Update an existing webhook. Takes the same params as create_webhook.
| Returns: | The id of the updated webhook, or False if the update failed. |
|---|---|
| Raises : | Http404 if the webhook cannot be found. |
DELETE /#account_id/webhooks/#webhook_id
Deletes an existing webhook.
| Returns: | True if the webhook deleted successufully. |
|---|---|
| Raises : | Http404 if no webhook found |