POST api/2.0/authentication

Description

Gets authentication token for use in api authorization

Parameters
Name Description Type Example
userName
sent in body
user name or email string some text
password
sent in body
password string some text
provider
sent in body
social media provider type string some text
accessToken
sent in body
provider token string some text
Returns

tokent to use in 'Authorization' header when calling API methods

Example Response

application/json

{
  "status": 0,
  "response": {
    "token": "sdjhfskjdhkqy739459234",
    "expires": "2019-02-18T07:31:23.5747559Z",
    "sms": false,
    "phoneNoise": ""
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <token>sdjhfskjdhkqy739459234</token>
    <expires>2019-02-18T07:31:23.5747559Z</expires>
    <sms>false</sms>
    <phoneNoise></phoneNoise>
  </response>
</result>