# 犀光数据拉取接口
# 1.接口:
http://mmapi.qiyu5.com/index.php/wl
# 2.请求参数:
参数名 | 类型 | 是否必须 | 参数说明 |
---|---|---|---|
channel | string | 否 | 查询的频道的参数 |
num | int | 否 | 查询的数量,默认10条 |
type | string | 否 | 查询数据的类型(news新闻,audio 音频,video 视频,atlas 图集 |
app_id | string | 是 | app_id 例如:qiyu |
# 3.返回值说明:
参数名称 | 参数描述 |
---|---|
status | 返回结果标识,1000 成功, 其他失败 |
desc | status 对应的描述信息 |
data | 返回数据结果内容 |
list | 返回数据列表 |
id | 内容唯一标识 |
title | 内容标题 |
src | 内容来源 |
url | 内容详情的url |
images | 封面图 |
publishtime | 发布时间 |
updatetime | 更新时间 |
status | 状态(add:添加;update:修改;delete:删除) |
注:当用详情页面的时候一定要加上user_id,这个是我们用来统计的
返回:
status: 1000,
desc: "OK",
data: {
list: [
{
id: "20190513113503762010",
title: "梁博X我是唱作人:不要输赢 只要一场Live演唱会",
src: "",
url: "https://xiaojiding.com/HttpService/get_news_detail2?id=20190513113503762010&app_id=qiyu",
images: [
"http://qiniu2.xiguangtech.com/201905/f959d4b595d648db993cde54b914db8f.jpg?imageView2/1/format/jpg/w/400/h/200/interlace/1/q/200",
"http://qiniu2.xiguangtech.com/201905/19b5d9b6678e4d52863541e1e64e3abjpg?imageView2/1/format/jpg/w/400/h/200/interlace/1/q/200",
"http://qiniu2.xiguangtech.com/201905/2da2ebe6f50a4aac8e9a215b06ef3cf5.jpg?imageView2/1/format/jpg/w/400/h/200/interlace/1/q/200"],
publishtime: 1557718503994,
updatetime: 1557717240000,
status: "add"},
{
id: "20190513113456639169",
title: "5月沪京展讯推荐 | 数字化时代,还有人关心展览有几件真迹吗?",
src: "",
url: "https://xiaojiding.com/HttpService/get_news_detail2?id=20190513113456639169app_id=qiyu",
images: [
"http://qiniu2.xiguangtech.com/201905/036ce406b1524bc0919f7bfe58be50b0.jpg?imageView2/1/format/jpg/w/400/h/200/interlace/1/q/200",
"http://qiniu2.xiguangtech.com/201905/865494222a4d4f4b945f448c299a8d38.jpg?imageView2/1/format/jpg/w/400/h/200/interlace/1/q/200",
"http://qiniu2.xiguangtech.com/201905/9402b8df03924fde8fceb7794195c4ab.jpg?imageView2/1/format/jpg/w/400/h/200/interlace/1/q/200"],
publishtime: 1557718496720,
updatetime: 1557712620000,
status: "add"}
]}}
没有数据时候返回
{
status: 0,
desc: "暂无更多数据"
}