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

  • 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 7
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 7 of 44
Http Request
URL: "http://"+ ip + "/manager?"
action: "vendor"
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=vendor&format=json&jsonca
llback=?
Return
1. HTTP request return:
Return successful
"{"res": "success", "vendor": "Grandstream Networks, Inc."}"
Return failed
"{"res": "error", "msg" : "can't get vendor"}"
2. callback
Function(data) will process the data returned from HTTP
request
getProduct(callbackFuntion)
Description
Retrieve GXV3240/GXV3275 product information
(login is not required)
Parameters
callbackFunction: Call back function
Http Request
URL: "http://"+ ip + "/manager?"
action: "vendor"
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=product&format=json&jsonc
allback=?
Return
1. HTTP request return:
Return successful
"{"res": "success", "product": "GXV3240"}"
"{"res": "success", "product": "GXV3275"}"
Return failed
"{"res": "error", "msg" : "can't get product model"}"
2. callbackFunction(data) will process the data returned from HTTP
request
Zobrazit stránku 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 44 45

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

Žádné komentáře