Grandstream GXV3275 GMI Web Service Guide Manual de usuario Pagina 18

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 45
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 17
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 17 of 44
mat=json&jsoncallback=?
Return
1. HTTP request return:
Clear successful
"{"res": "success"}"
Clear failed
"{"res" : "error", "msg": "clear group failed" }"
Return data failed
"{"res": "error", "msg" : "can't clear group"}"
"groupID" is empty
"{"res" : "error", "msg": "ID is empty" }"
2. callbackFu
nction(data) will process the data returned from HTTP
request
Note
The default group cannot be cleared. The ctID of the default group is
0.
removeGroup(gpID, callbackFunction)
Description
Remove phonebook group according to group ID. If gpID is empty,
delete all the groups.
Parameters
gpID: Group ID
callbackFunction: Call back function
Http Request
URL: "http://"+ ip + "/manager?"
action: "removegroup"
groupID: gpID
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=removegroup&groupID=1&for
mat=json&jsoncallback=?
Return
1. HTTP request return:
Remove successful
"{"res": "success"}"
Remove failed
"{"res" : "error", "msg": "remove group failed" }"
Return data failed
"{"res": "error", "msg" : "can't remove group"}"
Parameters in wrong format (GMI version 9 or newer)
"{"res" : "error", "msg": "wrong format" }"
Database operation error (GMI version 9 or newer)
Vista de pagina 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 44 45

Comentarios a estos manuales

Sin comentarios