Ticket #149 (new Bug) — at Version 4

Opened 10 years ago

Last modified 10 years ago

直播频道接口说明

Reported by: huangshaobiao Owned by: huangshaobiao
Priority: major Milestone:
Component: 直播频道 Version:
Keywords: 接口 Cc:
Due Date: 20/07/2016

Description (last modified by zhouqizhou) (diff)

1、直播列表接口
请求URL:
 http://pplive.pconline.com.cn/intf/broadcast_list.jsp
HTTP请求方式:get
是否需要登录:
返回格式:JSON
缓存时间:
请求参数:

cid: 类别ID, long, 非必传;
max: 最大记录数, int, 非必传, 默认值5

返回参数:

{
   size: 5,
   list:[
    {
      broadcastId: 1021, //直播ID
      title: "xxx", //标题
      backgroudUrl: "http...", //背景图地址
      url: "http...", //链接地址
      browseNum: 110, //访问量
      commentNum: 50, //评论数
      anchorList:[
        {
           anchorId: 74,
           nickname: "J·奥巴马",
           photoUrl: "http...", //头像地址
           viewUrl: "http..." //主播链接地址
         },
         ...
      ]
    },
    ...
   ]
}

2、热门主播列表接口
请求URL:
 http://pplive.pconline.com.cn/intf/anchor_list.jsp
HTTP请求方式:get
是否需要登录:
返回格式:JSON
缓存时间:十分钟
请求参数:

pageNo: 页码, int, 非必传,默认1;
pageSize: 当页记录数, int, 非必传, 默认值5

返回参数:
{

"data": [

{

"authorId": 94, 主播ID
"nickname": "王思聪",
主播昵称
"photoUrl": "xxxxx",头像地址
"popularity": 0
热门度

}

],
"msg": "查询列表成功", 接口描述
"status": 1,
接口状态 1成功 0失败
"tatolCount": 3 总记录数

}

3、直播类别接口
请求URL:
 http://pplive.pconline.com.cn/intf/category_list.jsp
HTTP请求方式:get
是否需要登录:
返回格式:JSON
缓存时间:十分钟
请求参数:

pageNo: 页码, int, 非必传,默认1;
pageSize: 当页记录数, int, 非必传, 默认值5

返回参数:
{

"data": [

{

"categoryId": 234, 类别ID
"categoryName": "大陆记实2",
类别名字
"sort": 3 类别顺序

}

],
"msg": "查询列表成功", 接口状态描述
"status": 1,
接口状态码 1成功 0失败
"tatolCount": 5 总记录数

}

Change History

comment:1 Changed 10 years ago by huangshaobiao

  • Description modified (diff)

comment:2 Changed 10 years ago by zhouqizhou

  • Description modified (diff)

comment:3 Changed 10 years ago by zhouqizhou

  • Description modified (diff)

comment:4 Changed 10 years ago by zhouqizhou

  • Description modified (diff)
Note: See TracTickets for help on using tickets.