Login
In order for Shufflrr to validate your API user has the rights to perform the actions, the account must login. To interface with the Shufflrr APIs the first step is to authenticate the session by using the Account Login API. This API is used to send in a specific user (API User). This API will validate that the account has access to your Shufflrr portal. A successful call will return a cookie which will need to be used in subsequent calls to other APIs to validate that the session is authenticated and authorized.
| Method type | POST |
| API Location | https://wwwapi.shufflrr.com/api/account/login |
| Swagger documentation location | https://wwwapi.shufflrr.com/api/docs/ui/index#!/Account/Account_Login |
Sample Request Body
{
"emailAddress": "APIUser@shufflrr.com",
"password": "Password",
"keepLoggedIn": true
}
Replace the email and password in the above request body with the email and password for the API User account you setup in the steps above.
Successful Login
When a login is successful the success element in the response body will be set to true. From the response body capture these pieces of data that will be used in other API calls:
- portalId (in the user element) – This is the ID of your Shufflrr portal.
- id (in the user element) – this is the ID of the API User.
Login Failure
When a login fails the success element in the response body will be set to false.