开放接口/推荐位内容(列表)

最后更新:2015-12-15

URL

/rest/recom

HTTP请求方式

GET

注意事项

返回数据的排序与平台中前台各推荐展示的顺序一致,暂不支持自定义排序

请求参数

参数名 必选 类型及范围 说明
token string 后台“数据接口”页面可查看到,代表授权的唯一标识
count int 单页返回的记录数,默认为10
page int 返回结果的页码,默认为0(初始页码从0开始)
cate string 推荐位标识,后台“推荐位列表”可查看到,指定要获取哪个推荐位下的内容

返回结果

{
    "count": "5",
    "data": [
        {
            "id": "282",
            "title": "7月5日天玺装饰新店开业盛装启幕",
            "s_title": "",
            "description": "",
            "image": "http://7xispx.com1.z0.glb.clouddn.com/2015/0630/14356745771052989597.jpg",
            "url": "http://www.hualongxiang.com/tianxi/12083474",
            "created": "1435674644"
        }
    ]
}

返回字段说明

返回值字段 字段类型 字段说明
count integer 数据总量
data[]
id integer 数据id
title string 推荐内容主标题
s_title string 推荐内容副标题
description string 推荐内容摘要
image string 推荐内容图片地址
url string 推荐内容链接
created integer 推荐添加的时间,UNIX时间戳格式