X-Plugin-Hmac-Sha256
HTTP header which is included with every webhook request. You can compare this header value with the HMAC generated locally to ensure that the request was not spoofed or modified in transit. The HMAC “message” is the entire request body and the HMAC “secret” is the secret_key
associated with the webhook.
webhook.list
webhook.list()
Retrieve webhooks list.
webhook.create
webhook.create(object $webhookData)
Create new webhook for a single or multiple topics.
true
if webhook was successfully created.
code | message |
---|---|
101 | Invalid data given. Details in error message. |
102 | An unexpected error occurred while creating the webhook. |
106 | Webhook not created. Details in error message. |
webhook.update_status
webhook.update_status(string $topic, number $status)
Update webhook status.
true
if status was successfully updated.
code | message |
---|---|
100 | Error changing status for specified webhook. Details in error message. |
webhook.delete
webhook.delete(int $webhookId)
Delete webhook.
true
if webhook was successfully deleted.
code | message |
---|---|
103 | Webhook not exists. |
104 | An unexpected error occurred while deleting the webhook. |
105 | Webhook not deleted. Details in error message. |