获取淘宝买家的信誉信息
1.请求参数:
请求URL:
参数名 | 类型 | 必须 | 示例值 | 说明 |
---|---|---|---|---|
appid | String | true | uwkahf@jfs92 | 合作伙伴AppId |
timestamp | String | true | 1633618722 | 当前时间戳 |
nick | String | true | kingdo | 淘宝买家账号 |
sign | String | true | 999de41d862efaa6f1084ead3b3ba480 | 如何计算生成见示例代码 |
2. 请求示例代码(Java)
@Test
public void TaoBaoUserBuyerGet() throws Exception {
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("nick", "superxxxxxxx");
data.put("sign", Utils.Sign(data,Config.AppSecret));
// 调用服务API
doHttpRequest(Config.TaoBaoUserBuyerGet ,data);
}
3. 返回结果
返回结果如下 ,
{
"code": 0,
"data": {
"jubao": "1", //默认值1,表示查了骗子库
"jubaoData": {
"WeiGui": "0", //违规
"JiangQuan": "0",//降权
"ChaPing": "0",//差评
"ZhaoCha": "0",//找茬
"ChouJian": "0", //抽检
"DaJia": "0", //打假
"KuiKuan": "0", //退款
"QiTa": "0" //其他
},
"receiveHistroy": [
{
"startDate": "2023-10-28T00:00:00",//收货区间的开始时间
"endDate": "2023-11-04T00:00:00",// 收货区间的结束时间
"differDay": 7, // 收货区间的天数差
"differXinyu": 0 // 收货区间的信管差
},
{
"startDate": "2023-09-26T00:00:00",
"endDate": "2023-10-11T00:00:00",
"differDay": 15,
"differXinyu": 1
},
{
"startDate": "2023-08-26T00:00:00",
"endDate": "2023-09-25T00:00:00",
"differDay": 30,
"differXinyu": 1
},
{
"startDate": "2023-06-30T00:00:00",
"endDate": "2023-07-15T00:00:00",
"differDay": 15,
"differXinyu": 1
},
{
"startDate": "2023-05-28T00:00:00",
"endDate": "2023-06-14T00:00:00",
"differDay": 17,
"differXinyu": 1
}
],
"data": {
"TouXiang": null,//头像
"ZhangHao": "superxxxxx", //帐号
"RenZhang": "支付宝实名认证", //认证
"TaobaoJiBei": "普通会员", //淘宝级别
"HuoYueDu": 0, //活跃度
"XinYu": 151, //信誉
"XinYuTuBiao": "http://pics.taobaocdn.com/newrank/b_red_5.gif", //信誉图标
"HaoPingLv": 98.5, //好评率
"ZhouJunXinYu": 0.21, //周均信誉
"YueJunXinYu": 0.9, //月均信誉
"ZhuCeTianShu": "6695", // 注册天数
"TaoLingNian": "18", //淘龄(年)
"DiQu": "保密", //地区
"ZhuCeShiJian": "2005-07-11",// 注册时间
"XingBie": "男", //性别
"ZongChaXunCiShu": "13", //总查询次数
"DangTianChaXunCiShu": "1", //当天查询次数
"ZuiJin3tianChaXunCiShu": "3", //最近3天查询次数
"ZuiJin7tianChaXunCiShu": "3",//最近7天查询次数
"ZuiJin30tianChaXunCiShu": "3",//最近30天查询次数
"BuyerXinYuDianShu": ">=201",//买家信誉点数
"SellerXinYuDianShu": 0,//卖家信誉点数
"ZongHePingFen": "85", //综合评分
"PingFenCanKao": "信誉月涨幅过高", //评分参考
"AnQuanJiBie": "一般", //安全级别
"XinYuYueZhangFu": 201, //信誉月涨幅
"TaoQiZhi": "<1000" //淘气值
}
},
"message": "成功"
}
说明: code为0表示成功,非0为失败,message会包含失败原因。
文档更新时间: 2023-11-08 17:06 作者:admin