Closeservice(name, callbackfunction), Grabwindow(path, callbackfuntion) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 38
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 37 of 44
closeService(name, callbackFunction)
Description
Close an application (GMI 8)
Parameters
• name —— application name (2.34-Application List)
• callbackFunction: Call back function
Http Request
• URL: "http://" + ip +"/manager?"
• Action: "closeservice"
• Name: name
• 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=closeservice&name=BLF
&format=json& jsoncallback=?"
Return
1. HTTP request return:
• Close successful:
"{"res": "success"}"
• Failed:
"{"res": "error", "msg" : "close application failed"}"
• name is empty
"{"res" : "error", "msg": "name is empty" }"
2. callbackFunction(data) will process the data returned from HTTP
request
grabWindow(path, callbackFuntion)
Description
Screenshots, and save the screenshots to specific directory (GMI 8)
Parameters
• path ------ Save Path (Path and File Name)
• callbackFunction: Call back function
Http Request
• URL: "http://" + ip +"/manager?"
• Action: "grabwindow"
• Path: path
• 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=grabwindow&
path=/pro/pic&time=10&format=json& jsoncallback=?"