Request test
Request URL
https://api.replier.net/messages
Parameters
instanceid
The lastMessageNumber parameter from the last response
token
Displays the last 100 messages. If this parameter is passed, then lastMessageNumber is ignored.
lastMessageNumber
Filter messages by chatId Chat ID from the message list. Examples: [email protected] for private messages and [email protected] for the group.
last
Sets length of the message list. Default 100. With value 0 returns all messages.
chatId
limit
{
 "messages": [
  {
   "id": "[email protected]_DF38E6A25B42CC8CCE57EC40F",
   "body": "Ok!",
   "type": "chat",
   "senderName": "Ilya",
   "fromMe": true,
   "author": "[email protected]",
   "time": 1504208593,
   "chatId": "[email protected]",
   "messageNumber": 100
  },
  {
   "id": "[email protected]_DF38E6A25B42CC8CCE57EC40F",
   "body": "Ok!",
   "type": "chat",
   "senderName": "Ilya",
   "fromMe": true,
   "author": "[email protected]",
   "time": 1504208593,
   "chatId": "[email protected]",
   "messageNumber": 100
  }
 ],
 "lastMessageNumber": 199
}
Request samples
Note : don't forget to URL encode your query params like base64 or utf-8