beautypg.com

Getcontactcount(callbackfuntion), Phbkresponse(phbkgroup, callbackfuntion) – Grandstream GXV3275 GMI Web Service Guide User Manual

Page 14

background image

GXV3240/3275 GMI Web Service v1.9 User Guide

Page 13 of 44

"{"res": "success", "msg": "3"}"

• Return failed

"{"res": "error", "msg" : "can't get group count"}"

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

getContactCount(callbackFuntion)

Description

Retrieve the number of contacts in phonebook

Parameters

callbackFunction: Call back function

Http Request

• URL: "http://"+ ip + "/manager?"
• action: "getcontactcount"
• 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=getcontactcount&format=json&j
soncallback=?

Return

1. HTTP request return:
• Return successful

"{"res": "success", "msg": "9"}"

• Return failed

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

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

phbkresponse(phbkGroup, callbackFuntion)

Description

• Configure phonebook group information (edit group and add

group)

• Phonebook group structure

PhbkGroup

{

gpID; //Group ID, string

gpName; //Group name, string

}
• If gpID is empty, the group with gpID will be added. If gpID is

existed, group gpID will be edited.

This manual is related to the following products: