Getmessage(id, callfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 25
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 24 of 44
"{"res": "success", "phbkresponse":"0"}"
• Saving in process:
"{"res": "success", "phbkresponse":"1"}"
2. If the HTTP request returns "putportphbk" successfully, users could
send HTTP requests to check whether the phonebook.xml import
process is done. For example:
http://192.168.121.230/manager?action=phbkresponse&format=json
Return:
• Import done: "{"res": "success", "phbkresponse":"0"}"
• Importing in process:
"{"res": "success", "phbkresponse":"1"}"
• Contacts full
"{"res": "success", "phbkresponse":"2"}"
• Parse failed
"{"res": "success", "phbkresponse":"3"}"
• Import failed
"{"res": "success", "phbkresponse":"4"}"
• Phone is processing
"{"res": "success", "phbkresponse":"9"}
• Invalid file
"{"res": "success", "phbkresponse":"10"}"
getMessage(id, callFunction)
Description
Get message according to message id. When id=-1, get the last
message
Parameters
• id: Message ID
• callbackFunction: Call back function
Http Request
• URL: "http://"+ ip + "/manager?"
• action: "getmessage"
• id: "-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=getmessage&id=-1&for
mat=json&jsoncallback=?
Return
1. HTTP request return:
• Successful