beautypg.com

Cleargroup(gpid, callbackfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual

Page 17

background image

GXV3240/3275 GMI Web Service v1.9 User Guide

Page 16 of 44

contacts

Parameters

• ctID: Contact ID
• callbackFunction: Call back function

Http Request

• URL: "http://"+ ip + "/manager?"
• action: "removecontact"
• contactID: "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=removecontact&contactID=1&f
ormat=json&jsoncallback=?"

Return

1. HTTP request return:
• Remove successful

"{"res": "success"}"

• Remove failed

"{"res" : "error", "msg": "remove contact failed" }"

• Return data failed

"{"res": "error", "msg" : "can't remove contact"}"

• Parameters in wrong format (GMI version 9 or newer)

"{"res" : "error", "msg": "wrong format" }"

• Database operation error (GMI version 9 or newer)

"{"res" : "error", "msg": "0" }"

2. callbackFunction(data) will process the data returned from HTTP
request

clearGroup(gpID, callbackFunction)

Description

Clear contacts in the group. All the cleared contacts in the group will
be moved to the default group

Parameters

• gpID: Group ID
• callbackFunction: Call back function

Http Request

• URL: "http://"+ ip + "/manager?"
• action: "cleargroup"
• 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=cleargroup&groupID=1&for

This manual is related to the following products: