Senddraftmessage(id, callbackfunction)putportphbk, Removemessage(id, flag, callbackfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 27
![background image](https://www.manualsdir.com/files/787816/content/doc027.png)
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 26 of 44
"{"res" : "error", "msg" : "0"}"
sendDraftMessage(id, callbackFunction)putportphbk
Description
Send message from Draft box. After the message is sent, it will be
moved from Draft box to Outbox
Parameters
• id: Message ID
• callbackFunction: Call back function
Http Request
• URL: "http://"+ ip + "/manager?"
• action: "senddraftmessage"
• messageID: "12"
• format: "json"
• jsoncallback: "?" (This is the HTTP request for the call back
function, usually used in AJAX and JQuery)
• For example:
http://192.168.121.230/manager?action=senddraftmessage&messa
geID=12&format=json&jsoncallback=?
Return
HTTP request return:
• Send successful
"{"res": "success"}"
• Send failed
"{"res" : "error", "msg" : "send new message failed"}"
removeMessage(id, flag, callbackFunction)
Description
Remove message
Parameters
• flag: Remove type. 1 - remove all messages from Inbox, Outbox
or Draft box; 0 - remove one message
• id: Message identifier.
flag=1, id=0 - remove all messages in Inbox
flag=1, id=1 - remove all messages in Outbox
flag=1, id=2 - remove all messages in Draftbox
flag=0, id is the message ID - remove message with message ID
= id
• callbackFunction: Call back function
Http Request
• URL: "http://"+ ip + "/manager?"
• action: "removemessage"