Get requests
Please use this (https://blkem.com/mobile_api/get_requests) API for accessing the endpoint of fetching all the requests
Get parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | E.g. de25cc16eb00960f076... |
status | Filter by status -1. All (default) 0. Cancelled 1. New 2. In-progress 3. Completed |
E.g. 1 |
page_size | Total records limit for each request | Recommended: 20 |
offset | Last request offset ID | This is only needed when loading records of the pagination system. |
Success response
{
"code": 200,
"message": "Fetched successfully",
"data": [
{
"id": 60,
"country": "US",
"state": "Texas",
"city": "Waxahachie",
"zip": "75165",
"address": "1400 W Marvin Ave",
"lat": "32.400373281218535",
"lng": "-96.85778075523983",
"type_id": 3,
"type_option": null,
"user_id": 8728,
"created_time": "1677892054",
"adoption_time": null,
"adopted_by": null,
"status": 1,
"cancelled_time": null,
"end_time": null,
"notes": null,
"chapter_id": 4,
"chapter_team_id": null,
"type_name": "Mental Health",
"username": "abidpersonal1",
"fname": "abidpersonal",
"lname": "test",
"email": "[email protected]",
"phone": null,
"avatar": "https://blkem.s3.amazonaws.com/upload/default/avatar.png",
"created_time_formatted": "2023-03-04 06:07:34",
"created_time_diff": "26 days ago",
"adopted_by_obj": null,
"primary_emergency": "",
"secondary_emergency": ""
}
],
"counts": {
"all": 13,
"new": 1,
"progress": 0,
"completed": 2,
"cancelled": 10
}
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 404,
"message": "No data found",
"data": []
}