API 文档
搜索文档…
获取推流容器列表(快捷方式)

接口

获取推流容器列表
1
GET /api/v3/activity/:id/stream-jobs/push
Copied!

授权

请求 header
1
Authorization: Bearer <accessToken>
2
Content-Type: application/json
Copied!
注:请将上方的 <accessToken> 替换为分配给您的秘钥串。关于如何获取 accessToken ,请咨询杨经理(18968187008)。

参数

请求样例

1
curl -H 'authorization: bearer <accessToken>' shangzhibo.tv/api/v3/activity/8930091/stream-jobs/push
Copied!

响应

参数
参数类型
参数说明
id
integer
容器 id
activityId
string
活动 id
type
enum<pull, push>
pull 表示拉流容器,push 表示推流容器
status
enum<active, passive>
active 表示容器已经开启,passive 表示容器已经关闭
createdAt
string
创建时间
updatedAt
string
更新时间

响应样例

1
[
2
{
3
"id": 21526,
4
"activityId": "349392",
5
"type": "push",
6
"party": "owner",
7
"address": "rtmp://push.shangzhibo.tv/onelive/test",
8
"status": "passive",
9
"pid": 19213,
10
"provider": "luffy",
11
"createdAt": "2020-06-03T08:50:51.000Z",
12
"updatedAt": "2020-06-03T08:54:04.000Z"
13
},
14
{
15
"id": 21527,
16
"activityId": "349392",
17
"type": "push",
18
"party": "owner",
19
"address": "rtmp://push.shangzhibo.tv/onelive/test",
20
"status": "passive",
21
"pid": null,
22
"provider": "luffy",
23
"createdAt": "2020-06-03T09:06:09.000Z",
24
"updatedAt": "2020-06-03T09:06:09.000Z"
25
},
26
{
27
"id": 21528,
28
"activityId": "349392",
29
"type": "push",
30
"party": "owner",
31
"address": "rtmp://push.shangzhibo.tv/onelive/test",
32
"status": "passive",
33
"pid": null,
34
"provider": "luffy",
35
"createdAt": "2020-06-03T09:06:24.000Z",
36
"updatedAt": "2020-06-03T09:06:24.000Z"
37
}
38
]
Copied!
最近更新 1yr ago