Request to join block
Please use this (https://blkem.com/mobile_api/request_to_join_block) API endpoint for Request to join block (send notification to host, co-hosts)
Post parameters
Field | Value | Remarks |
---|---|---|
session_id | ​Access token ID | E.g. de25cc16eb00960f076... |
Block ID | Audio Block ID | E.g. 474... |
type | Client device type | ios/android (Default is android) |
Success response
{
"code": 200,
"message": "Request Sent successfully",
"data": {
"id": 27,
"pinned_block": 0,
"is_private": 0,
"admin_host_only": 0,
"unmute_all_mics": 0,
"category_id": 8,
"description": "asdasd",
"dicussion_link": "http://localhost/blkemweb-audio-blocks/admin_panel/blocks",
"scheduled_block_date": null,
"scheduled_block_time": null,
"block_label": "live",
"status": 1,
"type": "admin",
"og_data": null,
"time": "2023-05-22 01:41:26",
"category_name": "Azalia Hunter",
"block_time": "2023-05-22 01:41:26",
"host": {
"id": 8715,
"avatar": "https://blkem.s3.amazonaws.com/upload/avatars/2023/02/EDtTR1NLG2nUGkA8XbDF_20_62e595d984be120d83379279758f60d8_thumbnail_512x512.jpg",
"cover": "https://blkem.s3.amazonaws.com/upload/covers/2023/03/tbOj7eQHXjTCofoCWpjn_14_4494f48de9b8811727a336508de8066e_image_cover_600x200.jpg",
"cover_orig": "https://blkem.s3.amazonaws.com/upload/covers/2023/03/tbOj7eQHXjTCofoCWpjn_14_4494f48de9b8811727a336508de8066e_image_cover.jpg",
"first_name": "user1",
"last_name": "Testaccount",
"user_name": "user1test",
"email": "[email protected]",
"is_verified": true,
"website": "",
"about_you": "",
"gender": "M",
"country": "United States",
"country_flag": "https://blkem.s3.amazonaws.com/themes/default/statics/banners/us.svg",
"post_count": 37,
"ip_address": "102.89.34.242",
"following_count": 1,
"follower_count": 0,
"language": "english",
"last_active": "1679097006",
"profile_privacy": "everyone",
"member_since": "Jul 2022",
"is_blocked_visitor": false,
"is_following": false,
"can_view_profile": true
},
"cohost": [
{
"id": 8726,
"avatar": "https://blkem.s3.amazonaws.com/upload/default/avatar.png",
"cover": "https://blkem.s3.amazonaws.com/upload/default/cover.png",
"cover_orig": "https://blkem.s3.amazonaws.com/upload/default/cover.png",
"first_name": "Nen",
"last_name": "Test",
"user_name": "Testnen",
"email": "[email protected]",
"is_verified": true,
"website": "",
"about_you": "",
"gender": "M",
"country": "United States",
"country_flag": "https://blkem.s3.amazonaws.com/themes/default/statics/banners/us.svg",
"post_count": 0,
"ip_address": "98.209.111.208",
"following_count": 0,
"follower_count": 0,
"language": "english",
"last_active": "1661827071",
"profile_privacy": "everyone",
"member_since": "Aug 2022",
"is_blocked_visitor": false,
"is_following": false,
"can_view_profile": true
},
{
"id": 8724,
"avatar": "https://blkem.s3.amazonaws.com/upload/avatars/2022/12/yOpGleMOYqa9azZx8hGy_12_8da03d3bbc6843d40d8f52c13ed7f3e7_thumbnail_512x512.jpg",
"cover": "https://blkem.s3.amazonaws.com/upload/covers/2022/12/8CtnT8SdtvRQ3lEBIhKr_12_147a90818a982eea178d4b00311be9ec_image_cover_600x200.jpg",
"cover_orig": "https://blkem.s3.amazonaws.com/upload/covers/2022/12/8CtnT8SdtvRQ3lEBIhKr_12_147a90818a982eea178d4b00311be9ec_image_cover.jpg",
"first_name": "user4test",
"last_name": "user4test",
"user_name": "user4test",
"email": "[email protected]",
"is_verified": true,
"website": "",
"about_you": "",
"gender": "M",
"country": "United States",
"country_flag": "https://blkem.s3.amazonaws.com/themes/default/statics/banners/us.svg",
"post_count": 13,
"ip_address": "49.36.191.132",
"following_count": 2,
"follower_count": 1,
"language": "english",
"last_active": "1680085876",
"profile_privacy": "everyone",
"member_since": "Aug 2022",
"is_blocked_visitor": false,
"is_following": false,
"can_view_profile": true
}
],
"listners": [
{
"id": 6098,
"avatar": "https://blkem.s3.amazonaws.com/upload/avatars/2022/03/2vruyeyNZHVS6vwydREa_28_f241b152c39e7d987562c8327472dd67_thumbnail_512x512.jpeg",
"cover": "https://blkem.s3.amazonaws.com/upload/covers/2022/08/HBpgOCAhhIf3aujeG5hU_15_1355a36ac154f4771a3da64ce1cfd1ad_image_cover_600x200.png",
"cover_orig": "https://blkem.s3.amazonaws.com/upload/covers/2022/08/HBpgOCAhhIf3aujeG5hU_15_1355a36ac154f4771a3da64ce1cfd1ad_image_cover.png",
"first_name": "John",
"last_name": "Abraham",
"user_name": "abiidars",
"email": "[email protected]",
"is_verified": true,
"website": "",
"about_you": "test",
"gender": "O",
"country": "United States",
"country_flag": "https://blkem.s3.amazonaws.com/themes/default/statics/banners/us.svg",
"post_count": 4,
"ip_address": "::1",
"following_count": 3,
"follower_count": 2,
"language": "english",
"last_active": "1684932143",
"profile_privacy": "everyone",
"member_since": "Nov 2020",
"is_blocked_visitor": false,
"is_following": false,
"current_status": "pending",
"user_type": "listener",
"joining_time": "2020-11-17 08:52:17",
"request_to_speak": 0,
"is_report": 0,
"can_view_profile": true
}
]
}
}
Error responses
{
"code": 401,
"data":[],
"message": "You are already Co-host/Host in this block"
}
{
"code": 400,
"message": "Incorrect Block ID",
"data": []
}
{
"code": 400,
"message": "Incorrect device type value",
"data": []
}
{
"code": 400,
"message": "Block already join!",
"data": []
}
{
"code": 400,
"message": "Block Capacity Full!",
"data": []
}
{
"code": 401,
"message": "Unauthorized Access",
"data": []
}