xiaodian.member.user.sold.get

  • 免费
  • 无需授权

API功能描述(支持get和post)

批量查询用户信息

公共参数

名称 类型 必选 描述
app_key Long 接入时申请的app_key
method String 接口名称
access_token String Oauth2.0授权获得的access_token
sign String 对 API 调用参数(除sign外)进行 md5 加密获得。参数的顺序为字母表的顺序
timestamp Long 时间戳,使用Unix时间戳格式
format String 响应格式。默认为json格式,固定
sign_method String 参数的加密方法选择,当前只支持Md5
version String API协议版本,固定值为:1.0

输入参数

名称 类型 必选 描述 示例值
buyerIds Number[] 要查询的用户ids

返回参数

名称 类型 描述 默认值
status Object 状态
code String 状态码 1000000
msg String 信息 请求成功
result Object 结果
data Object[] 数据
data_object Object 返回数据
isSuperior Boolean 是否有上级分销员 true
unionId String unionId djLaND
distributorIds Number[] 上级分销员ids 15130557
openId String openId dIeqjLaND-18AbnhZg3HWU
nickname String 昵称
headPortrait String 头像 /mlcdn/5abf39/200202_8f97g85ce742khcialk9khf7gdd8c_132x132.jpg
userId Number 用户id 12155293
mobile String 手机号
success Boolean 是否成功 true

请求参数示例

1).
{ "buyerIds":[1520669443,1521735488,1521724155] }

返回示例

1).
{ "status": { "code": "1000000", "msg": "请求成功" }, "result": { "data": [ { "isSuperior": true, "unionId": "oUZti5hoELQ2apnmp5c50VtPUtB0", "distributorIds": [ 1520669443 ], "openId": "oybEY42BKtoLj6MnRKq01mpU7IWs", "nickname": "lucky1991", "headPortrait": "/mlcdn/5abf39/200214_56k1932c1dake95bkba4hij6bbhd6_132x132.jpg", "userId": 1520669443 }, { "isSuperior": true, "unionId": "oUZti5ocMKNZtYSMcXBUbOScfA_A", "distributorIds": [ 1520669445 ], "openId": "oybEY48HTVwJEzs1t3K4FWY7SoNY", "nickname": "千寻13945024026", "headPortrait": "/mlcdn/5abf39/200227_6laehfii0236lb02k1k0hk57g6kd7_132x132.jpg", "userId": 1521735488 }, { "isSuperior": true, "unionId": "oUZti5t8gI14Fpxzj29nSUYfbDfs", "distributorIds": [ 1520669443 ], "openId": "oybEY43WsODWUJpnpjELvte_lf_s", "nickname": "今日份大头", "headPortrait": "/mlcdn/5abf39/200227_5dd27h4h32dikj67912able0h978b_132x132.jpg", "userId": 1521724155 } ] }, "success": false }

异常示例

1).
{ "status": { "code": "0000006", "msg": "参数类型错误[Param Type Error: buyerId 参数值:null,无法解析为:java.lang.Long]" }, "result": { "data": null }, "success": false }