接口地址:<gateway>?app=video&controller=video&action=get
接受参数:
参数 |
名称 |
传递类型 |
值类型 |
备注 |
contentid |
内容编号 |
GET |
整型 |
必须传递,读取该编号的具体内容 |
返回数据:
{
"state": true,
"data": {
"contentid": "75",
"catid": "5",
"modelid": "4",
"title": "\u89c6\u9891: \u4e60\u8fd1\u5e73\u63a5\u53d7\u7f8e\u56fd\u300a\u534e\u76db\u987f\u90ae\u62a5\u300b\u4e66\u9762\u91c7\u8bbf",
"subtitle": "",
"color": "",
"thumb": "2012\/0215\/1329278589616.jpg",
"tags": "\u534e\u76db\u987f\u90ae\u62a5 \u4e60\u8fd1\u5e73 \u7f8e\u56fd \u4e66\u9762 \u89c6\u9891",
"sourceid": "3",
"topicid": "75",
"url": "http:\/\/news.cmstop.dev\/2012\/0215\/75.shtml",
"weight": "60",
"status": "6",
"created": "1329278593",
"createdby": "1",
"published": "1329278580",
"publishedby": "1",
"iscontribute": "0",
"spaceid": null,
"related": "1",
"pv": "0",
"allowcomment": "1",
"comments": "0",
"score": "0",
"tweeted": "0",
"aid": "0",
"video": "http:\/\/player.youku.com\/player.php\/sid\/XMzUyNDgwMjQ4\/v.swf",
"playtime": "76",
"description": "\u89c6\u9891: \u4e60\u8fd1\u5e73\u63a5\u53d7\u7f8e\u56fd\u300a\u534e\u76db\u987f\u90ae\u62a5\u300b\u4e66\u9762\u91c7\u8bbf 120214 \u65b0\u95fb\u8054\u64ad ",
"editor": "CmsTop",
"source_url": "",
"source_name": "youku",
"source": "youku",
"source_logo": null,
"keywords": [{
"tag": "\u534e\u76db\u987f\u90ae\u62a5",
"url": "http:\/\/app.cmstop.dev\/tags.php?tag=%E5%8D%8E%E7%9B%9B%E9%A1%BF%E9%82%AE%E6%8A%A5"
}, {
"tag": "\u4e60\u8fd1\u5e73",
"url": "http:\/\/app.cmstop.dev\/tags.php?tag=%E4%B9%A0%E8%BF%91%E5%B9%B3"
}, {
"tag": "\u7f8e\u56fd",
"url": "http:\/\/app.cmstop.dev\/tags.php?tag=%E7%BE%8E%E5%9B%BD"
}, {
"tag": "\u4e66\u9762",
"url": "http:\/\/app.cmstop.dev\/tags.php?tag=%E4%B9%A6%E9%9D%A2"
}, {
"tag": "\u89c6\u9891",
"url": "http:\/\/app.cmstop.dev\/tags.php?tag=%E8%A7%86%E9%A2%91"
}],
"proids": "",
"relateds": [{
"relatedid": "8",
"contentid": "75",
"orign_contentid": "148",
"title": "\u4e13\u5bb6\u9274\u5b9a\u79f0\u5c71\u4e1c\u67a3\u5e84\u6355\u83b7\u91ce\u72fc\u786e\u4e3a\u5ba0\u7269\u72d7\u54c8\u58eb\u5947",
"thumb": "",
"url": "http:\/\/news.cmstop.dev\/2012\/0328\/148.shtml",
"time": "2012-03-28",
"sort": "0"
}, {
"relatedid": "9",
"contentid": "75",
"orign_contentid": "61",
"title": "\u5317\u4eac\u5c45\u6c11\u4f4f\u9662\u62a5\u9500\u5347\u81f370% \u5916\u5730\u6237\u7c4d\u5c06\u4eab\u751f\u80b2\u9669",
"thumb": "",
"url": "http:\/\/ent.cmstop.dev\/2011\/1221\/61.shtml",
"time": "2011-12-21",
"sort": "1"
}]
}
}
返回字段说明:
参数 |
名称 |
备注 |
contentid |
内容编号 |
|
catid |
栏目编号 |
|
modelid |
模型编号 |
|
title |
标题 |
|
subtitle |
副标题 |
|
color |
标题颜色 |
#XXXXXX 6位的标准HTML颜色代码 |
thumb |
缩略图 |
|
tags |
标签 |
多个标签以空格隔开 |
sourceid |
来源编号 |
|
topicid |
评论话题编号 |
用来调用评论时使用 |
url |
内容链接 |
|
weight |
权重 |
|
status |
状态 |
这里的状态永远为6,只允许列出已发布的文章 |
created |
创建时间 |
|
createdby |
创建人编号 |
|
published |
发布时间 |
|
publishedby |
发布人编号 |
|
iscontribute |
是否来自投稿 |
|
spaceid |
所属专栏编号 |
|
related |
是否有相关内容 |
0 无相关内容,1 有相关内容, 相关内容在relateds字段中以二维数组方式输出 |
pv |
浏览量 |
|
allowcomment |
是否允许评论 |
|
comments |
评论数 |
|
score |
评分 |
|
tweeted |
是否已被转发 |
如果该内容已被转发微薄,则为1,否则为0 |
aid |
附件编号 |
|
video |
视频地址 |
|
playtime |
视频时长 |
|
description |
内容描述 |
|
editor |
编辑 |
|
source_url |
来源地址 |
|
source_name |
来源名称 |
|
source |
来源名称 |
|
source_logo |
来源LOGO |
URL地址 |
keywords |
关键词列表 |
该内容是二维数组,字段参考: keywords数据说明 |
proids |
属性编号 |
多个属性以英文逗号(,)隔开 |
relateds |
相关内容列表 |
该内容是二维数据,字段参考: relateds数据说明 |
keyword数据说明:
tag |
关键词名称 |
|
url |
关键词链接 |
|
relateds数据说明:
relatedid |
相关内容编号 |
|
contentid |
内容编号 |
|
orign_contentid |
原始内容编号 |
|
title |
标题 |
|
thumb |
缩略图 |
|
url |
链接地址 |
|
time |
内容发布时间 |
|
sort |
相关排序 |
|