Authored by 於志远

定义直播间商品接口

Showing 1 changed file with 87 additions and 0 deletions
@@ -740,3 +740,90 @@ @@ -740,3 +740,90 @@
740 名称| 类型|说明| 740 名称| 类型|说明|
741 :----------- | :-----------: | :-----------: 741 :----------- | :-----------: | :-----------:
742 | data | str|返回格式 ip:port | 742 | data | str|返回格式 ip:port |
  743 +
  744 +
  745 +
  746 +###直播二期接口规范
  747 +# **直播房间详情**
  748 +
  749 +----------
  750 +
  751 +
  752 +### **调用说明**
  753 +###### url&方式
  754 +名称| 说明
  755 +:----------- | :-----------:
  756 +| url | http://api.live.yoho.cn/v1/living/detail|
  757 +| method | get |
  758 +
  759 +###### 参数说明
  760 +参数名称| 类型| 长度| 必须| 说明
  761 +:-- | :-- | :-- | :-- | :--:
  762 +| room_id | int|不限|是|直播房间ID|
  763 +
  764 +###### 调用示例
  765 +
  766 + http://api.live.yoho.cn/v1/living/detail
  767 +
  768 + GET room_id=2266102578
  769 +
  770 +
  771 +### **结果返回**
  772 +
  773 +###### 正确返回
  774 +
  775 + {
  776 + "code": 200,
  777 + "message": "",
  778 + "data": {
  779 + "master_pic": "http://usr.im/100x100?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  780 + "master_name": "王力宏1",
  781 + "master_meta": "ddd1",
  782 + "title": "werw",
  783 + "pic": "http://img12.static.yhbimg.com/global/2016/08/12/15/021dd17f6f156d2931944a5d0a5c58815c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
  784 + "watermark": "23432",
  785 + "living": 0,
  786 + "like_num": 0,
  787 + "audience_num": 0,
  788 + "live_start_time": "321",
  789 + "rtmp_downstream_address": "rtmp://2718.liveplay.myqcloud.com/live/2718_3baa8de762c411e6a2cba4dcbef5e35a",
  790 + "flv_downstream_address": "http://2718.liveplay.myqcloud.com/live/2718_3baa8de762c411e6a2cba4dcbef5e35a.flv",
  791 + "hls_downstream_address": "http://2718.liveplay.myqcloud.com/2718_3baa8de762c411e6a2cba4dcbef5e35a.m3u8",
  792 + "live_last_time": "321",
  793 + "background_pic": "http://img11.static.yhbimg.com/global/2016/08/17/18/01f17a9cd44149052482e4ee58e590cf1b.png",
  794 + "share_url": "http://m.yohobuy.com/activity/live/2266102578",
  795 + "share_title": "分享标题",
  796 + "share_content": "分享内容",
  797 + "products_skn_list": [
  798 + "51153047",
  799 + "51153048",
  800 + "51153048"
  801 + ]
  802 + },
  803 + "timestamp": 1471339317,
  804 + "md5": "36ca1d1279edc257a8dd5ee1ae052bc6"
  805 + }
  806 +
  807 +###### 返回说明
  808 +名称| 类型|说明|
  809 +:----------- | :-----------: | :-----------:
  810 +| master_pic | str|主播头像
  811 +| master_name | str|主播名称
  812 +| master_meta | str|主播标签
  813 +| title | str|标题
  814 +| pic | str|封面图
  815 +| watermark | str|水印文案
  816 +| living | int|直播状态,0:未开始,1:直播中,2:已结束
  817 +| like_num | int|点赞数
  818 +| audience_num | int|正在观看人数
  819 +| live_start_time | int|直播开始时间(时间戳)
  820 +| starting_time |int|直播预告时间(时间戳)
  821 +| rtmp_downstream_address | str|rtmp下行地址
  822 +| flv_downstream_address | str|flv下行地址
  823 +| hls_downstream_address | str|hls下行地址
  824 +| live_last_time | int|直播时长(秒)
  825 +| background_pic | str|房间背景图片url
  826 +| share_url | str|分享链接url
  827 +| share_title | str|分享标题
  828 +| share_content | str|分享内容
  829 +| products_skn_list | array | 直播对应的商品skn列表