Savemessage(callbackfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 28
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 27 of 44
• ID: "1"
• flag: "1"
• 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=removemessage&ID=1&fla
g=1&format=json&jsoncallback=?
Return
1. HTTP request return:
• Remove successful
"{"res": "success"}"
• Remove failed
"{"res" : "error", "msg" : "remove message failed"}"
• Parameters in wrong format (GMI version 9 or newer)
"{"res" : "error", "msg" : "wrong format"}"
saveMessage(callbackFunction)
Description
Save message.xml
Parameters
callbackFunction: Call back function
Http Request
• URL: "http://"+ ip + "/manager?"
• action: "savemessage"
• 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=savemessage&format=json
&jsoncallback=?
Return
HTTP request return:
• Save successful
"{"res": "success"}"
Note
After HTTP request returns saving successful, users could download
message.xml to the phone using the following link: