| Version 11 (modified by xuzhongzhou, 12 years ago) (diff) |
|---|
Table of Contents
PCLADY时尚网接口地址
6.1 资讯列表接口(每个栏目一个接口)
备注:
请求URL:
HTTP请求方式:GET
是否需要登录:否
返回格式:json
缓存方式:*
缓存时间:*
请求参数:
"pageNo": 1, "pageSize": 10
请求后端URL:*
请求后端参数:*
返回:
{
"msg": "",
"ret": 0,
"pageNo": 1,
"pageSize": 10,
"total": 5,
"list": [
{
type: 0,
title: "标题",
image: "图片URL",
imageCount: 5,
category: "穿衣搭配",
time: "时间"
}
]
}
6.2 文章终端页(web,带推荐,协议)
请求URL: http://mrobot.pclady.com.cn/v3/cms/articles/1205191?picRule=2
6.3 图库终端接口
备注:
请求URL: http://photo.pclady.com.cn/template/ladyproduct/common_photo.jsp?groupId=64048
HTTP请求方式:GET
是否需要登录:否
返回格式:json
缓存方式:*
缓存时间:*
请求参数:groupId
请求后端URL:*
请求后端参数:*
返回:*
6.4 检查是否已收藏接口
备注:
请求URL: http://my.pclady.com.cn/users/isfavor.do?id=1210145
HTTP请求方式:POST
是否需要登录:是
返回格式:json
缓存方式:*
缓存时间:*
请求参数:
HTTP Header
Cookie = "common_session_id=xxxx"
HTTP Body
id = 953577
请求后端URL:*
请求后端参数:*
返回:
{
"msg": "",
"ret": 0,
"favor": true
}
提示说明:
{"ret= 1":"favor:true","ret=-1":"msg:请先登录","ret=-2":"msg:文章不存在","ret=2":"favor:false"}
6.5 收藏接口
备注:
请求URL: http://my.pclady.com.cn/users/favor.do?id=1210145
HTTP请求方式:POST
是否需要登录:是
返回格式:json
缓存方式:*
缓存时间:*
请求参数:
HTTP Header
Cookie = "common_session_id=xxxx"
HTTP Body
id = 953577
请求后端URL:*
请求后端参数:*
返回:
{
"msg": "",
"ret": 0
}
提示说明:
{"ret= 1":"msg:收藏成功","ret=-1":"msg:请先登录","ret=-2":"msg:文章不存在","ret=-3":"msg:你已经收藏过了"}
6.6 取消收藏接口
备注:
请求URL: http://my.pclady.com.cn/users/unfavor.do?id=1210145
HTTP请求方式:POST
是否需要登录:是
返回格式:json
缓存方式:*
缓存时间:*
请求参数:
HTTP Header
Cookie = "common_session_id=xxxx"
HTTP Body
id = 953577
请求后端URL:*
请求后端参数:*
返回:
{
"msg": "",
"ret": 0
}
提示说明:
{"ret= 1":"msg:取消收藏成功","ret=-1":"msg:请先登录","ret=-2":"msg:文章不存在","ret=-3":"msg:你并没有收藏此文章"}
6.7 我的收藏列表接口
备注:
请求URL: http://my.pclady.com.cn/users/pagefavor.do?pageNo=1&pageSize=10
HTTP请求方式:POST
是否需要登录:是
返回格式:json
缓存方式:*
缓存时间:*
请求参数:
HTTP Header
Cookie = "common_session_id=xxxx"
HTTP Body
"pageNo": 1,
"pageSize": 10
请求后端URL:*
请求后端参数:*
返回:
{
"msg": "",
"ret": 0,
"pageNo": 1,
"pageSize": 10,
"total": 5,
"list": [
{
id: 953577,
title: "标题",
image: "图片URL",
time: "时间"
}
]
}
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)