Grandstream GXV3275 GMI Web Service Guide Uživatelský manuál Strana 38

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 45
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 37
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=?"
Zobrazit stránku 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 44 45

Komentáře k této Příručce

Žádné komentáře