ACRCloud
Search…
Live Channels
post
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels
Create a live channel
Curl
Python
1
curl --location --request POST 'https://api-v2.acrcloud.com/api/buckets/8894/channels' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{"title":"test", "url":"udp://192.168.1.10", "user_defined":{"city":"New York"}}'
Copied!
1
import requests
2
3
url = "https://api-v2.acrcloud.com/api/buckets/8894/channels"
4
5
payload={
6
"title":"test",
7
"url":"udp://192.168.1.10",
8
"user_defined":{"city":"New York"}
9
}
10
headers = {
11
'Accept': 'application/json',
12
'Authorization': 'Bearer token',
13
'Content-Type': 'application/json'
14
}
15
16
response = requests.post(url, headers=headers, json=payload)
17
18
print(response.text)
Copied!
get
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels
List the channels
Curl
1
curl --location --request GET 'https://api-v2.acrcloud.com/api/buckets/8894/channels' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token'
Copied!
put
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels/:id
Update a channel
Curl
1
curl --location --request PUT 'https://api-v2.acrcloud.com/api/buckets/8884/channels/8' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{"title":"test"}'
Copied!
delete
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/channels/:ids
Delete ingesting channels
Curl
1
curl --location --request DELETE 'https://api-v2.acrcloud.com/api/buckets/8894/channels/8' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token'
Copied!
post
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/rec-channels
Import channels
Curl
1
curl --location --request POST 'https://api-v2.acrcloud.com/api/buckets/8885/rec-channels' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{"ids":[5,6]}'
Copied!
delete
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/rec-channels/:ids
Delete rec channels
Curl
1
curl --location --request DELETE 'https://api-v2.acrcloud.com/api/buckets/8895/rec-channels/5,6' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token'
Copied!
post
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/timeshift-channels
Create timeshift channels
Curl
1
curl --location --request POST 'https://api-v2.acrcloud.com/api/buckets/8893/timeshift-channels' \
2
--header 'Accept: application/json' \
3
--header 'Authorization: Bearer token' \
4
--header 'Content-Type: application/json' \
5
--data-raw '{"id":5, "time":24}'
Copied!
delete
https://api-v2.acrcloud.com
/api/buckets/:bucket_id/timeshift-channels/:ids
Delete timeshift channels
Last modified 2mo ago