REST API reference
Thông báo ngừng dịch vụ
Bizfly Cloud VoD sẽ ngừng hoạt động vào 31/12/2026. Video hiện có không thể chuyển sang MPS hoặc dịch vụ khác. Hãy tải và sao lưu video trước khi dịch vụ ngừng hoạt động.
MPS là dịch vụ riêng cho nội dung tải lên mới, không phải công cụ chuyển dữ liệu VoD. Các API VoD dưới đây chỉ dành cho khách hàng cần sử dụng dịch vụ trước ngày ngừng hoạt động.
Xác thực
BizflyCloud CDN API sử dụng các header X-Auth-Token và X-Tenant-Name để xác thực API
-
Hướng dẫn lấy các thông tin
X-Auth-TokenvàX-Tenant-Name: https://docs.bizflycloud.vn/api_cli/api_tutorials/#id=l%E1%BA%A5y-token -
Endpoint Api:
https://manage.bizflycloud.vn/api/vod/
Khởi tạo kho video
POST https://manage.bizflycloud.vn/api/vod/stores
Request Body
|Name| Required | Type |Description| Example | |—-|———-|———|———–| |store_name| True | String |Tên của kho video|test| |player_sites| False | List | Sites được cho phép phát player|[“hoctructuyen.com”] |player_skin| True | String |Skin của player (skin1/skin2)|“skin1”|[“c1”, “c2”] |player_color_skin| True | String |Màu sắc của player|204848| |video_analytics_status| True | Boolean |tắt/bật video analytics |false| |drm_status| True | boolean |Trạng thái drm|false| |drm_allow_sites| False | List |Sites được DRM cho phép hiển thị|"*" |drm_allow_countries| False | List |Quốc gia được DRM cho phép|
Ví dụ
Request
curl --location --globoff 'https://manage.bizflycloud.vn/api/vod/stores' \
--header 'X-Tenant-Name: <tenant_name>' \
--header 'X-Auth-Token: <token>' \
--data '{
"store_name": "name3",
"player_sites": ["hoctructuyen.com"],
"player_skin": "skin1",
"player_color_skin": "rgb(29, 129, 39)",
"video_analytics_status": false,
"drm_status": false,
"drm_allow_sites": ["allow site 1", "allow site 2"],
"drm_allow_countries": ["c1", "c2"]
}'
Response
{
"data": {},
"description": "Successfull",
"status": true,
"status_code": "S001"
}
Lấy Token của kho video
POST https://manage.bizflycloud.vn/api/vod/store/qltns-channel/token?store_name=<store_name>
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| store_name | Path | True | string | Story name |
Ví dụ
curl --location --globoff 'https://manage.bizflycloud.vn/api/vod/store/qltns-channel/token?store_name=test'