smsAdm.Login
DEPRECATED, see new Auth function that returns a Bearer Access Token to be used as an authorization token for all subsequent REST API calls.
Request
Method |
URL |
POST |
/smserver/smsadm.login |
RAW |
POST /smserver/smsadm.login HTTP/1.1 Cache-Control: no-cache Connection: Keep-Alive Pragma: no-cache Content-Type: application/json; charset=UTF-8 Accept: */* Authorization: Basic XXXXXXXXXXXXXXXX==
[{"user":"sa"}] |
Explained |
Login invia al server un json con dentro delle informazioni sull'utente, per ora solo lo user viene valorizzato |
Response
Method |
URL |
RAW |
Accept-Encoding: synlz,gzip Content-Length: 41 Content-Type: application/json; charset=UTF-8 Date: Thu, 28 Jan 2016 22:57:55 GMT Server: Microsoft-HTTPAPI/2.0 Server-InternalState: 15
{"result":[{"Result": 1}],"id":772674711} |
Explained |
The result is a JSON object that contains an array of 1 element. Such array contains the actual Result object (in the example above the Result is 1).
Result values: Greater than 0 = Success 0 or less = Error
Optionally, when the result is 0 or less (error) the object also contains a "ResultMsg": "friendly error message" |