Webhook Info
The getWebhookInfo method is used to retrieve information about configured webhookURL.
Request Format#
You need to send a POST request to:
https://yoai.yophone.com/api/pub/getWebhookInfoRequest example#
curl -X POST https://yoai.yophone.com/api/pub/deleteWebhook \-H "Content-Type: application/json" \-H "X-YoAI-API-Key: your YoAI api key"
Success Response#
The API returns a JSON object indicating the success of the operation.
{ "code": 200, "success": true, "data": { "webhookURL": "", "lastErrorDate":"", "lastErrorMessage": "", "pendingUpdatesCount": 0 }}Failure Response#
The API returns a JSON object indicating the success of the operation.
{ "code": 200, "success": false, "message": "not found"}