beautypg.com

Removegroup(gpid, callbackfunction) – Grandstream GXP2200 GMI Web Service Guide User Manual

Page 18

background image

GXP2200 GMI WEB SERVICE GUIDE V1.0

Page 17 of 38

AJAX and JQuery)

• For example:

http://192.168.121.230/manager?action=cleargroup&groupID=1&format=json&jsonc

allback=?

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. callbackFunction(data) will process the data returned from HTTP request

Note

The default group cannot be cleared. The ctID of the default group is 0

19. 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&format=json&jso

ncallback=?