Commit 8b4e310056e6acaaa3b22d608c721316c2a1b074
1 parent
9923aa6a
update
Showing
1 changed file
with
9 additions
and
8 deletions
02.直播云/1.1 获取直播活动信息接口APP.md
| 1 | 1 | /* |
| 2 | -Title: 1.1 获取某直播活动信息接口 for APP_SDK or WebServer | |
| 2 | +Title: 1.1 获取某直播活动信息接口 for APP_SDK | |
| 3 | 3 | */ |
| 4 | 4 | |
| 5 | 5 | ### 接口描述 ### |
| 6 | 6 | |
| 7 | 7 | |
| 8 | 8 | ### 接口地址 ### |
| 9 | -http://api.cnlive.com/open/api2/live_zbsc/getLiveActivityPlayInfo | |
| 9 | +http://api.cnlive.com/open/api2/live_epg/getLiveActivityPlayInfo4App | |
| 10 | 10 | |
| 11 | 11 | ### 接口协议 ### |
| 12 | 12 | HTTP GET |
| ... | ... | @@ -17,6 +17,7 @@ HTTP GET |
| 17 | 17 | | appId | string | true | 应用ID | |
| 18 | 18 | | activityId| string | true | 由开发者通过API创建接口或者在直播云管理端创建,保证唯一性 | |
| 19 | 19 | | timestamp | int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 | |
| 20 | +| platform_id | String | true | 平台ID,鉴权 | | |
| 20 | 21 | | sign | String | true | 签名规则见 [签名详情] (http://help.open.cnlive.com/common.html) | |
| 21 | 22 | |
| 22 | 23 | |
| ... | ... | @@ -26,9 +27,9 @@ HTTP GET |
| 26 | 27 | | :----------- | :------: | :------: | :------: | |
| 27 | 28 | | errorCode | int | true | 错误类型号 | |
| 28 | 29 | | message| string | true | 错误类型 | |
| 29 | -| activityid| string | true | 活动ID,确保SP下的唯一性 | | |
| 30 | -| activityname | string | true | 活动名称 | | |
| 31 | -| activitystatus | int | true | 活动状态,0:未开始 /1:已开始 /3:已结束 /4 已下线,默认为0 | | |
| 30 | +| activityId| string | true | 活动ID,确保SP下的唯一性 | | |
| 31 | +| activityName | string | true | 活动名称 | | |
| 32 | +| activityStatus | int | true | 活动状态,0:未开始 /1:已开始 /3:已结束 /4 已下线,默认为0 | | |
| 32 | 33 | | isHorizontalScreen | int | true | 屏幕方向,0:垂直即竖屏 /1:水平即横屏 ,默认为1 | |
| 33 | 34 | | channelID | string | true | 播放通道;PGC业务:平台分配/ UGC业务:主播ID生成,确保SP下的唯一性 | |
| 34 | 35 | | createTime | string | false | 开始时间,格式yyyyMMddHHmmss | |
| ... | ... | @@ -54,9 +55,9 @@ HTTP GET |
| 54 | 55 | "errorCode":"0", |
| 55 | 56 | "messagae":"请求成功", |
| 56 | 57 | "data"{ |
| 57 | - "activityid":"xxxxx", | |
| 58 | - "activitystatus":"1", | |
| 59 | - "activityname":"测试活动", | |
| 58 | + "activityId":"xxxxx", | |
| 59 | + "activityStatus":1, | |
| 60 | + "activityName":"测试活动", | |
| 60 | 61 | "coverImgUrl":"小图图片URL", |
| 61 | 62 | "isHorizontalScreen":"1", |
| 62 | 63 | "channelID":"xinyingshi", | ... | ... |