Authorization
To get the access_token, you need to make a request by passing the authentication data email and pass_hash.
Get access_token
POST
/api/users/authorize
Query Parameters
email*
string
Users Email
pass_hash*
string
MD5(EMAIL + PASS)
access_token - Token of authorization
reason_code - Reason for failed login (0 - EmailOrPasswordIsInvalid, 1 - NotConfirmed, 2 - NotActive, 3 - ErrorOccured, 4 - RequestsLimiterHandled)
reason - Reason for failed login
{
"Data": {
"access_token": "54513b68a5e301494174d43eca63e5bc2",
"reason": null,
"reason_code": null
},
"Error": null,
"Status": "OK",
"StatusCode": 200
As a result of the request, an access_token will be returned, with which you can make calls to custom API methods.
Warning! The issued access_token is tied to the visitor's IP (parameter ip).
To transfer an authorization token to the RezOn project (or from RezOn to your site), you need to set (read) the _ACCESS_TOKEN cookie
This mechanism will work only if the RezOn project is located on a subdomain of your site (why?).
Last updated