Get user request
Please use this (https://blkem.com/mobile_api/get_user_request) API for accessing the endpoint of fetching user's last request
Get parameters
Field | Value | Remarks |
---|---|---|
session_id | ​Access token ID | E.g. de25cc16eb00960f076... |
Success response
{
"code": 200,
"message": "Fetched successfully",
"data": {
"id": 7,
"country": "US",
"state": "NY",
"city": "New York",
"zip": "10004",
"address": "Statue of Liberty",
"lat": "40.6974034",
"lng": "-74.1197634",
"type_id": 1,
"user_id": 6098,
"created_time": "1656463473",
"adoption_time": null,
"status": 3,
"notes": null,
"chapter_id": 1,
"chapter_team_id": 1,
"chapter": {
"id": 1,
"name": "Las Vegas Chapter",
"location_id": 5,
"primary_phone": "12312312",
"secondary_phone": null,
"active": 1,
"location_name": "134 Dixie Road",
"location_address": "134 Dixie Road",
"location_city": "Lubec",
"location_state": "ME",
"location_zip": "04652",
"location_country": "US"
},
"teams": [
{
"id": 1,
"name": "Team A",
"chapter_id": 1,
"user_id": 6098,
"primary_phone": "23123",
"secondary_phone": "20394823940",
"fname": "John",
"lname": "Abraham",
"avatar": "http://localhost/blkem-new//upload/default/avatar.png",
"coords": {
"lat": "40.698458842247824",
"lng": "-73.85224632852137"
},
"coords_updated_at": "18 hours ago",
"username": "John Abraham",
"selected": true,
"arrival": 63
},
{
"id": 6,
"name": "Team B",
"chapter_id": 1,
"user_id": 8612,
"primary_phone": "13123",
"secondary_phone": "123123",
"fname": "asd",
"lname": "asd",
"avatar": "http://localhost/blkem-new//upload/default/avatar.png",
"coords": {
"lat": "40.7466314",
"lng": "-73.8456362"
},
"coords_updated_at": false,
"username": "asd asd",
"selected": false,
"arrival": 60
}
]
}
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 404,
"message": "No data found",
"data": []
}