Ticket #149 (new Bug) — at Version 2

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..." //主播链接地址
         },
         ...
      ]
    },
    ...
   ]
}
}}}[[BR]]
[[BR]]
'''2、热门主播列表接口'''
'''请求URL:'''
http://zqz.pconline.com.cn:8080/intf/anchor_list.jsp
'''HTTP请求方式:'''get
'''是否需要登录:'''是
'''返回格式:'''JSON
'''缓存时间:'''十分钟
'''请求参数:'''
 pageNo: 页码, int, 非必传,默认1;
 pageSize: 当页记录数, int, 非必传, 默认值5
'''返回参数:'''
{
    "data": [
        {
            "authorId": 94, //主播ID
            "nickname": "王思聪",  //主播昵称
            "photoUrl": "http://dev2.pconline.com.cn:9191/upcfiles/live_video/1607/19/c0/160783_1468920151680_150x150.jpg",//头像地址
            "popularity": 0  //热门度
        }
    ],
    "msg": "查询列表成功",  //接口描述
    "status": 1,	//接口状态  1成功 0失败
    "tatolCount": 3	//总记录数
}[[BR]]
[[BR]]

Change History

comment:1 Changed 10 years ago by huangshaobiao

  • Description modified (diff)

comment:2 Changed 10 years ago by zhouqizhou

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