Get scheduled messages
{
"action":"get_scheduled_messages"
"contact":"1",
"from":"123456000",
"to":"123456000"
}
Field |
Required |
Description |
contact |
No |
The contact to get scheduled messages for (required if getting messages for single contact) |
from |
No |
The from date for the request, required if contact not present |
to |
No |
The to date for the request, required if from present |
Response
{"messages":[...]}
Response: Messages
{
"id": "1",
"scheduled": "123456000",
"deliveryDate": "123456000",
"contact": "1",
"message": "Hello World",
"delivered": "<boolean>",
"fname": "Testy",
"lname": "Testerson",
"queuedMessage": "100",
"frequency": "0"
}
Create Scheduled Message
{
"action":"create_scheduled_message",
"deliveryDate": "12346000",
"contact": "1",
"message": "Hello World message",
"frequency": "0"
}
Update Scheduled Message
{
"action":"update_scheduled_message",
"id": "1",
"deliveryDate": "123456000",
"contact": "1",
"message": "Hello World message",
"frequency": "0"
}
Delete Saved Message
{"action":"delete_scheduled_message","id": "1"}
Field |
Required |
Description |
id |
Yes Update/Delete |
The id of the scheduled message (long) |
deliveryDate |
Yes Create/Update |
The date in UTC that the message should be delivered by |
contact |
Yes Create/Update |
The contact to schedule the message for |
message |
Yes Create/Update |
The message (1024) |
frequency |
Yes Create/Update |
0=Once |
Comments
0 comments
Please sign in to leave a comment.