
GXV3240/3275 GMI Web Service v1.9 User Guide
"{"res" : "error", "msg" : "0"}"
sendDraftMessage(id, callbackFunction)putportphbk
Send message from Draft box. After the message is sent, it will be
moved from Draft box to Outbox
• id: Message ID
•
callbackFunction: Call back function
• 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)
• 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
• URL: "http://"+ ip + "/manager?"
• action: "removemessage"
Comentarios a estos manuales