curl \
-X POST \
"https://api.rumbletalk.com/chats/123/messages" \
-H "Authorization: Bearer <token>" \
-d "{\"text\":\"Hello World!\"}"
{
"status": true
}
curl \
-X GET \
"https://api.rumbletalk.com/chats/123/messages" \
-H "Authorization: Bearer <token>"
{
"status": true,
"count": 2,
"data": [
{
"messageId": 654,
"time": 1458934376,
"userId": 1,
"image": null,
"userName": "John",
"text": "Hello World!"
},
...
]
}
curl \
-X GET \
"https://api.rumbletalk.com/chats/123/messages?fast=true" \
-H "Authorization: Bearer <token>"
{
"status": true,
"count": 2,
"data": [
{
"messageId": 654,
"time": 1458934376,
"userId": 1,
"image": null,
"userName": "John",
"text": "Hello World!"
},
...
],
"next": "..."
}
curl \
-X DELETE \
"https://api.rumbletalk.com/chats/123/messages/654" \
-H "Authorization: Bearer <token>"
{
"status": true
}
curl \
-X POST \
"https://api.rumbletalk.com/chats/123/messages/delete" \
-H "Authorization: Bearer <token>" \
-d "[1, 2, 3]"
{
"status": true
}
This method is irreversible and should be handled with care
curl \
-X DELETE \
"https://api.rumbletalk.com/chats/123/messages/654" \
-H "Authorization: Bearer <token>"
{
"status": true
}