Page
84
40.
Phonebook contact update: JSONRPC method
HTTP POST METHOD:
https://url-of-smseagle/index.php/jsonrpc/sms
Parameter
Description
login
your user to login to SMSEagle
pass
your password to login to SMSEagle
contact_id
id of existing contact
contactname
name for the contact
number
phone number for the contact
public
(optional parameter) 0 = private group, 1 = public group
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_update",
"params":{"login":"john","pass":"doe","contact_id":"4","contactname":"j
ohnlord","number":"123456789","public":"1"}}
RESPONSE:
Response:
{"result": "OK"}
Response (when wrong logindata):
{"result": "Invalid login or password"}
Response (when wrong parameters):
{"result": "Wrong or missing >>contactname<< parameter"}
{"result": "Wrong or missing >>contact_id<< parameter"}
{"result": "Wrong or missing >>number<< parameter"}
Response (when contact_id is wrong):
{"result": "Contact with the given id does
not exists"}
RESPONSE (EXTENDED):
Response:
{"result":{"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 >>contact_id<<
parameter","status":"error"}}
{"result": {"error_text":"Wrong or missing >>number<<
parameter","status":"error"}}
Response (when contact_id is wrong):
{"result": {"error_text":"Contact with the given id does not
exists","status":"error"}}
Summary of Contents for NPE-9300-GPRS/3G
Page 1: ...Page 1...
Page 6: ...Page 6 1 GET READY TO START...
Page 13: ...Page 13 2 USING OF SMSEAGLE...
Page 35: ...Page 35 Screenshot from digital output Add or edit rule window...
Page 99: ...Page 99 3 TROUBLESHOOTING...
Page 102: ...Page 102 4 SERVICE AND REPAIR...
Page 104: ...Page 104 5 TECH SPECS AND SAFETY INFORMATION...