Methods
Objects
Webhooks management.
Method | Description |
---|---|
webhooks.disable | Disables a Webhook (if it was previously enabled) |
webhooks.enable | Enables a Webhook (if it was previously disabled) |
webhooks.get | Returns a Webhook |
webhooks.get_event_types | Returns available hook types. |
webhooks.get_list | Returns the subscribed webhooks. |
webhooks.search_logs | Searches through the webhooks push logs |
webhooks.subscribe | Subscribes a new Webhook |
webhooks.unsubscribe | Unsubscribes a Webhook |
webhooks.disable
Disables a Webhook (if it was previously enabled)
method: webhooks.disable
params: [string hash]
Parameter | Type | Description | NULL |
---|---|---|---|
hash | string |
Webhook ID Format: hash (Unique object identifier) |
NO |
Type | Description | Format/Object |
---|---|---|
object | Webhook | Object: Webhook |
webhooks.enable
Enables a Webhook (if it was previously disabled)
method: webhooks.enable
params: [string hash]
Parameter | Type | Description | NULL |
---|---|---|---|
hash | string |
Webhook ID Format: hash (Unique object identifier) |
NO |
Type | Description | Format/Object |
---|---|---|
object | Webhook | Object: Webhook |
webhooks.get
Returns a Webhook
method: webhooks.get
params: [string hash]
Parameter | Type | Description | NULL |
---|---|---|---|
hash | string |
Webhook ID Format: hash (Unique object identifier) |
NO |
Type | Description | Format/Object |
---|---|---|
object | Webhook | Object: Webhook |
webhooks.get_event_types
Returns available hook types.
method: webhooks.get_event_types
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
array | Types |
webhooks.get_list
Returns the subscribed webhooks.
method: webhooks.get_list
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
array | Webhooks | Array of Webhook objects. |
webhooks.search_logs
Searches through the webhooks push logs
method: webhooks.search_logs
params: [object filters, object options]
Parameter | Type | Description | NULL |
---|---|---|---|
filters | object |
Search filters Object: Webhook.Log.Search.Filters |
NO |
options | object |
Search options Object: Search.Options |
NO |
Type | Description | Format/Object |
---|---|---|
object | Search results | Object: Search.Results |
webhooks.subscribe
Subscribes a new Webhook
method: webhooks.subscribe
params: [string type, string endpoint, object options]
Parameter | Type | Description | NULL |
---|---|---|---|
type | string | Webhook type | NO |
endpoint | string | Your URL | NO |
options | object |
Options Object: Webhook.Options |
YES |
Type | Description | Format/Object |
---|---|---|
object | Webhook object | Object: Webhook |
webhooks.unsubscribe
Unsubscribes a Webhook
method: webhooks.unsubscribe
params: [string hash]
Parameter | Type | Description | NULL |
---|---|---|---|
hash | string |
Webhook ID Format: hash (Unique object identifier) |
NO |
Type | Description | Format/Object |
---|---|---|
bool | true (or throws an Exception otherwise) |