Get updates
#
Request FormatYou need to send a POST request to:
https://yoai.yophone.com/api/pub/getUpdates
#
Request exampleRequest body is empty object
curl -X POST "https://yoai.yophone.com/api/pub/getUpdates" \ -H "Content-Type: application/json" \ -H "X-YoAI-API-Key: your YoAI api key" \ -d '{}'
#
Response data keysid
chatId
text
: base64 encoded string
sender
:
Object containing sender information, which includes:
firstName
: Sender's first name.lastName
: Sender's last name.id
: Unique identifier for the sender.chanelId
: Channel ID associated with the sender.
#
Response example{ "code": 200, "success": true, "data": [ { "id": 7, "chatId": "chat id", "text": "", "sender": { "id": "sender unique id", "firstName": "John", "lastName": "Doe" } } ]}