Getgroupcount(callbackfuntion) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 13
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 12 of 44
• contactID: ""
• groupID: ""
• contactName: ""
• 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=getcontact&contactID=&groupI
D=&contactName=&format=json&jsoncallback=?
Return
1. HTTP request return:
• Return successful
"{"res": "success", "msg":
[{"contactID":"0","contactName":"xxx","groupID":"0","work":"8819","h
ome":"", "mobile":"","fax":"","photo":"","email":""},
{“ontactID”:”1","contactName":"grandstream","groupID":"0","work":"3
587","home":"", "mobile":"","fax":"","photo":"","email":""}]}"
• No contacts
"{"res": "error", "msg" : "0"}"
• Return failed
"{"res": "error", "msg" : "can't get contacts information"}"
• Parameters in wrong format (GMI version 9 or newer)
"{"res": "error", "msg" : "wrong format"}"
2. callbackFunction(data) will process the data returned from HTTP
request
getGroupCount(callbackFuntion)
Description
Retrieve the number of groups in phonebook
Parameters
callbackFunction: Call back function
Http Request
• URL: "http://"+ ip + "/manager?"
• action: "getgroupcount"
• 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=getgroupcount&format=json&js
oncallback=?
Return
1. HTTP request return:
• Return successful