User Manual

102 | SMSEagle NXS-9700-3G | User’s Manual
Response (when wrong logindata):
<xml>
<error_text>Invalid login or password</error_text>
<status>error</status>
</xml>
Response (when wrong parameters):
<xml>
<error_text>Wrong or missing >>contactname<< parameter</error_text>
<status>error</status>
</xml>
<xml>
<error_text>Wrong or missing >>number<< parameter</error_text>
<status>error</status>
</xml>
36. Phonebook contact create: 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
contactname
name for the created contact
number
telephone number for the created contact
public
(optional parameter) 0 = private contact 1 = public contact (default value)
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":"123
45678","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):