beautypg.com

Getparameter(confitem[ ], callbackfuntion), Launchservice(name, arg, callbackfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual

Page 35

background image

GXV3240/3275 GMI Web Service v1.9 User Guide

Page 34 of 44

"{"res": "error", "msg":"phone rebooting"}"

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

getParameter(confItem[ ], callbackFuntion)

Description

1. HTTP request return:
• Configure successful

"{"res": "success", "flag":"1"}"

• Configure failed

"{"res": "error", "msg":"phone rebooting"}"

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

Parameters

• ConfItem: Phone's configuration (array)
• callbackFunction: Call back function

Http Request

• URL: http://" + ip +"/manager?"
• action: "get"
• var-0000: val1 //Key

var-0001: val2 //Key

....

var-xxxx

• 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=get&var-0000=7044&var-00
01=904&format=json&jsoncallback=?

Return

1. HTTP request return:
• Successful

"{"res": "success", "7044":"1", "904":"15"}"

• Failed

"{"res": "error", "msg":"new memory failed or no value"}"

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

launchService(name, arg, callbackFunction)

Description

• Open an application.
• GXV32xx/GXP2200 applications: Blue Background

This manual is related to the following products: