Custom Streams Projects
Create Custom Streams Project
POST https://api-v2.acrcloud.com/api/bm-cs-projects
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
external_ids
string
spotify,deezer,isrc,upc,musicbrainz
metadata_template
string
The streams metadata template
region
string
eu-west-1,us-west-2,ap-southeast-1
name
string
Project name
buckets
string
Bucket ids array
type
string
BM-ACRC or BM-LOCAL BM-ACRC: Ingesting the streams audio data on our server. BM-LOCAL: ingesting the streams audio data on your local server. Please refer to Local monitoring Tool
{
"data":{
"uid":1,
"access_key":"************",
"type":"BM-ACRC",
"state":1,
"name":"bm-test",
"region":"ap-southeast-1",
"bucket_group":"8881",
"external_id":"",
"updated_at":"2021-01-04 10:42:24",
"created_at":"2021-01-04 10:42:24",
"id":13528,
"buckets":[
{
"id":8881,
"uid":1,
"name":"bucket-music",
"type":"File",
"node":"127.0.0.1-871",
"state":1,
"region":"ap-southeast-1",
"metadata_template":"{"artist":{"default":"abc"}, "album":{
"type":"select", "default":"334", "options":["123", "334"]}}",
"labels":[
"Music",
"Video"
],
"net_type":1,
"created_at":"2019-03-01 15:31:25",
"updated_at":"2020-12-24 08:26:35",
"num":1,
"size":"300000",
"access_permission":"private"
}
],
"status_check":2,
"external_ids":[
"spotify","deezer","isrc"
],
"metadata_template":"StreamId,City,FM",
"monitoring_num":0
}
}List the projects
GET https://api-v2.acrcloud.com/api/bm-cs-projects
Query Parameters
page
string
region
string
types
string
per_page
string
Headers
Accept
string
application/json
Authorization
string
Bearer token
Update a project
PUT https://api-v2.acrcloud.com/api/bm-cs-projects/:id
Path Parameters
id
number
The project id
Headers
Accept
string
application/json
Authorization
string
Bearer token
Request Body
name
string
buckets
string
external_ids
string
metadata_template
string
Delete a project
DELETE https://api-v2.acrcloud.com/api/bm-cs-projects/:id
Path Parameters
id
number
The project id
Headers
Authorization
string
Bearer token
Set result callback url
POST https://api-v2.acrcloud.com/api/bm-cs-projects/:id/result-callback
Path Parameters
id
number
The project id
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
result_callback_url
string
The following is the example of the results of the monitoring system posting to your results callback URL
Set state notification callback
POST https://api-v2.acrcloud.com/api/bm-cs-projects/:id/state-notification
Path Parameters
id
string
The project id
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
state_notification_email
string
state_notification_email: if the streams' states change, we will send a notification to the email you set.
state_notification_email_frequency
string
state_notification_email_frequency: 0:High 1:Low 2:None
state_notification_url
string
state_notification_url: if the streams' states change, we will post a request to this url you set.
Last updated