Gethardware(callbackfunction), Getvendor(callbackfuntion) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 7
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 6 of 44
• 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=pn&format=json&jsoncallback
=?
Return
1. HTTP request return:
• Return successful
"{"res": "success", "pn": "9620001902A"}"
• Return failed
"{"res": "error", "msg" : "can't get pn version"}"
2. callbackFunction(data) will process the data returned from HTTP
request
getHardware(callbackFunction)
Description
Retrieve GXV3240/GXV3275 Hardware version
Parameters
callbackFunction: Call back function
Http Request
• URL: "http://"+ ip + "/manager?"
• action: "hardware"
• 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=hardware&format=json&jsonca
llback=?
Return
1. HTTP request return:
•
Return successful
"{"res": "success", "hardware": "V2.0A"}"
•
Return failed
"{"res": "error", "msg" : "can't get hardware version"}"
2. callbackFunction(data) will process the data returned from HTTP
request
getVendor(callbackFuntion)
Description
Retrieve GXV3240/GXV3275 vendor information
(login is not required)
Parameters
callbackFunction: Call back function