Grandstream Networks GXV3175 Telephone User Manual


 
Grandstream Networks, Inc. GMI HTML SDK and API Guide Page 14 of 17
www.grandstream.com Last Updated: 07/2011
5.5 GMIEngine.put()
Function
GMIEngine. put(family, valuelist)
Description
Store the data specified by the parameter
Parameter and Return Value Parameter:
family – The family where the data belongs to
valuelist – The data list to be set. The values should be
separated by “&”.
Return Value:
N/A
Example:
The variables and function are as below:
var ip = “192.168.1.220”;
var name = “admin”;
var password = “admin”;
GMIEngine.put(“HoneyWell”, “ip=” + ip + “&name=” +
name + “&password=” + password);
Then ip/name/password will be stored and set under
“HoneyWell” family.
Note
This interface can be used with get() so the application
data can be read and written in GMI.
5.6 GMIEngine.get()
Function
GMIEngine.get(family, keylist)
Description
Get the data specified by the parameter
Parameter and Return Value Parameter:
family - The family where the data belongs to
keylist – The data list to be retrieved. The values should
be separated by “&”.
Return Value:
Return data in JSON format. The format should be
transformed into JSON format first.
Example: