Login
API Demo Instructions
Step 1:
Generate Access Token.
Use mentioned below API to login as a user in order to generate Access Token.
Sample API 1 - Login
Method: POST
URL: https://mini-mobapp-backend-demo.acumencode.com/api/login
Inputs:
key: email,
value: stfree2@mailinator.com
key: password,
value: admin123
Sample output:
{
"success": true,
"message": "Login successfull",
"data": {
"access_token": "######",
"full_name": "stfree2",
"email_id": "stfree2@mailinator.com",
"phone": "999999",
"picture_url": "https://mini-...",
"quote": "quote1"
}
}
Step 2:
Call any API using Access Token.
Call mentioned below APIs to get/post data using generated Access Token.
Sample API 2 - Quote List
Method: GET
URL: https://mini-mobapp-backend-demo.acumencode.com/api/user/quote/all
Authorization:
type: Bearer Token,
value: access_token_generated_in_step_1
Sample API 3 - Inspiration Categories List
Method: GET
URL: https://mini-mobapp-backend-demo.acumencode.com/api/inspiration-categories
Authorization:
type: Bearer Token,
value: access_token_generated_in_step_1
Sample API 4 - Add comment on an Article or a Mogul
Method: POST
URL: https://mini-mobapp-backend-demo.acumencode.com/api/user/comment/add
Authorization:
type: Bearer Token,
value: access_token_generated_in_step_1
Inputs:
key: comment,
value: This is my comment on this article / mogul.
key: comment_on_type,
value: article / mogul
key: comment_on_id,
value: 3