Table of Contents
商品百科接口
批量查询爆料点赞、踩、收藏数、评论数
线上: http://best.pconline.com.cn/intf/shangpinbaike/getTopicAttributes.jsp
说明
根据爆料ID出爆料点赞、踩、收藏数、评论数,批量查询
提交方式
get/post
是否需要登录
false
缓存方式
无
缓存时间
无
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| ids | 爆料id,用英文逗号隔开 | string | "" | 是 |
| callback | 回调参数 | string | "" | 否 |
返回
result {
"data":[
{
"badCount":1,//踩次数
"commentCount":0,//评论数
"favoriteCount":1,//收藏数
"goodCount":7,//点赞数
"topicId":2//爆料id
},
{
"badCount":5,
"commentCount":0,
"favoriteCount":0,
"goodCount":4,
"topicId":11
},
{
"badCount":0,
"commentCount":0,
"favoriteCount":0,
"goodCount":4,
"topicId":22
}
],
"msg":"success",
"status":1
}
返回状态
| status | msg | 说明 |
|---|---|---|
| 1 | success | 请求成功 |
| 0 | null | 结果为空 |
| -1 | parameter error | 参数错误 |
加金币加积分接口
线上: http://best.pconline.com.cn/intf/shangpinbaike/addGoldAndScore.jsp
说明
提供加积分和金币接口 ,有ip限定,只提供给商品百科。
提交方式
post
是否需要登录
true
缓存方式
无
缓存时间
无
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| gold | 金币 | int | "" | 是 |
| score | 积分 | int | "" | 是 |
| experience | 经验 | int | "" | 是 |
| userid | 用户id | long | "" | 是 |
| reason | 时间 | String | 百科 | 是 |
返回
result {
"status":1,
"msg":"添加成功"
}
返回状态
| status | msg | 说明 |
|---|---|---|
| 1 | 添加成功 | 添加成功 |
| 0 | 未找到该用户:+userid | 未找到该用户 |
| -1 | 你当前的ip:+ip地址+没有权限访问 | 非商品百科,没有权限访问 |
| -2 | 请求方式错误 | 请求方式错误 |
根据名称查询电商列表
线上: http://best.pconline.com.cn/intf/shangpinbaike/getMallByName.jsp
说明
根据名称查询电商列表
提交方式
get/post
是否需要登录
false
缓存方式
ats
缓存时间
10分钟
参数
| 参数名 | 参数含义 | 类型 | 默认值 | 是否必须 |
|---|---|---|---|---|
| name | 电商名 | string | "" | 是 |
返回
{
"data":[
{
"id":"京东",
"logo":"http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1505/19/c3/7004417_1432018877049.jpg",
"name":"京东"
}
],
"msg":"success",
"status":1
}
返回状态
| status | msg | 说明 |
|---|---|---|
| 1 | 添加成功 | 添加成功 |
| 0 | 结果为空 | 结果为空 |
| -1 | name不能为空 | name不能为空 |
| -2 | 请求方式错误 | 请求方式错误 |
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)