wiki:shangpinbaike

商品百科接口

批量查询爆料点赞、踩、收藏数、评论数

线上: 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 说明
1success请求成功
0null结果为空
-1parameter error参数错误

加金币加积分接口

线上: http://best.pconline.com.cn/intf/shangpinbaike/addGoldAndScore.jsp

说明

提供加积分和金币接口 ,有ip限定,只提供给商品百科。

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
gold金币int""
score积分int""
experience经验int""
userid用户idlong""
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结果为空 结果为空
-1name不能为空 name不能为空
-2请求方式错误 请求方式错误