Page
79
responsetype
(optional parameter) simple = format response as simple object with one result
field (default), extended = format response as extended JSON object
EXAMPLES:
{"method":"phonebook.contact_create",
"params":{"login":"john","pass":"doe","contactname":"johndoe","number":
"12345678","public":"1"}}
RESPONSE:
Response:
{"result": "OK; ID=[ID of created contact]"}
Sample response:
{"result": "OK; ID=2"}
Response (when wrong logindata):
{"result": "Invalid login or password"}
Response (when wrong parameters):
{"result": "Wrong or missing >>contactname<< parameter"}
{"result": "Wrong or missing >>number<< parameter"}
RESPONSE (EXTENDED):
Response:
{"result": {"contact_id":"[ID of created contact]","status":"ok"}}
Sample response:
{"result": {"contact_id":"2","status":"ok"}}
Response (when wrong logindata):
{"result": {"error_text":"Invalid login or password","status":"error"}}
Response (when wrong parameters):
{"result": {"error_text":"Wrong or missing >>contactname<<
parameter"},"status":"error"}}
{"result": {"error_text":"Wrong or missing >>number<<
parameter","status":"error"}}
37.
Phonebook contact read: HTTP GET method
HTTP GET METHOD:
https://url-of-smseagle/index.php/http_api/contact_read
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
public
(optional parameter) 0 = private contacts (default value), 1 = public contacts
uid
(optional parameter) id of user who created the contact
responsetype
(optional parameter) text = format response as text (default), xml = format
response as XML object
Содержание NPE-9300-GPRS/3G
Страница 1: ...Page 1...
Страница 6: ...Page 6 1 GET READY TO START...
Страница 13: ...Page 13 2 USING OF SMSEAGLE...
Страница 35: ...Page 35 Screenshot from digital output Add or edit rule window...
Страница 99: ...Page 99 3 TROUBLESHOOTING...
Страница 102: ...Page 102 4 SERVICE AND REPAIR...
Страница 104: ...Page 104 5 TECH SPECS AND SAFETY INFORMATION...