Grandstream GXV3275 GMI Web Service Guide Instrukcja Użytkownika Strona 16

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 45
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 15
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 15 of 44
home; //Home number
mobile; //Mobile number
fax; //Fax number
mail; //Email address
}
If ctID is existed, contact ctID will be edited
setPhonebook interface to import the contacts
Parameters
PhbkContact: Contact information
callbackFunction: Call back function
Http Request
URL: "http://"+ ip + "/manager?"
action: "setcontact"
contactInfo: ctID::ctName::gpID::work::home::mobile::fax::mail
Note: each field is connected with “::”
format: "json"
usually used in AJAX and JQuery)
For example:
dstream::0::5211::2512::1234::0120::::&format=json&jsoncallback=?
Return
1. HTTP request return:
Return successful
"{"res": "success", "msg": "1"}" //ctID is "1"
Return failed
"{"res": "error", "msg" : "can't set contact"}"
"contactInfo" is empty
"{"res" : "error", "msg": "contact information is empty" }"
Contact setup failed
"{"res" : "error", "msg": "set contact failed" }"
"contactInfo" wrong format
"{"res" : "error", "msg": "wrong format" }"
Database operation error (GMI version 9 or newer)
"{"res" : "error", "msg": "0" }"
2. callbackFunction(data) will process the
request
removeContact(ctID, callbackFunction)
Description
Remove contact ctID from phonebook. If ctID is empty, remove all
Przeglądanie stron 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 44 45

Komentarze do niniejszej Instrukcji

Brak uwag