获取手机通讯录

简要描述:

  • 本接口不是获取好友列表,是获取手机通讯里推荐好友

请求URL:

  • http://域名地址/phoneAddressList

请求方式:

  • POST

请求头Headers:

  • Content-Type:application/json
  • Authorization:login接口返回

参数:

参数名 必选 类型 说明
wId String 微信实列ID

返回数据:

参数名 类型 说明
code string 1000成功,1001失败
msg string 反馈信息
data JSONArray
phoneMD5 string 手机号MD5值
userName string 微信id
nickName string 昵称
signature string 签名
sex int 性别
aliasName string 微信号
country string 国家
bigHead string 大头像
smallHead string 小头像

请求参数示例

{
   "wId": "0000016f-a2f0-03e3-0003-65e826091614"
}

成功返回示例

{
    "code": "1000",
    "message": "获取通讯录成功",
    "data": [
        {
            "phoneMD5": "a0a5as32a1936da33fa3376ac14f5023c",
            "userName": "wxid_u5s1f1jnuyijd22",
            "nickName": "朱忠亮爷爷",
            "signature": null,
            "sex": 0,
            "aliasName": null,
            "country": null,
            "bigHead": "http://wx.qlogo.cn/mmhead/ver_1/WzRtKEXrNq7N84qiaVQB0ZSST5sUibCXq11zOib7ujS5tGeDYKwaIZzXbFicRcXsHEJia1wzhvicaLI8fwJl3E80d3OxwyHQK4mDe0DliceUPicOa3s0/0",
            "smallHead": "http://wx.qlogo.cn/mmhead/ver_1/WzRtKEXrNq7N84qiaVQB0ZSST5sUibCXq11zOib7ujS5tGeDYKwaIZzXbFicRcXsHEJia1wzhvicaLI8fwJl3E80d3OxwyHQK4mDe0DliceUPicOa3s0/132"
        },
        {
            "phoneMD5": "30363ed6bed82sef887727cf93c054f42",
            "userName": "wxid_ss2anfqssb0tu11",
            "nickName": "coco",
            "signature": null,
            "sex": 2,
            "aliasName": null,
            "country": "中国",
            "bigHead": "https://wx.qlogo.cn/mmhead/ver_1/mP3bOfckoXf3e3d6pUFr1jlsfgISsQxLngqBd2QGGuNQguF2ACzCeFjmicXia0MeK8L8iaWE7NvoWibOJmciaHtktqa95UxW4dtV3gMZ2546wiccZ8/0",
            "smallHead": "http://wx.qlogo.cn/mmhead/ver_1/mP3bOfckoXf3e3d6pUFr1jlsfgISQsxLngqBd2QGGuNQguF2ACzCeFjmicXia0MeK8L8iaWE7NvoWibOJmciaHtktqa95UxW4dtV3gMZ2546wiccZ8/132"
        },
        {
            "phoneMD5": "fc8e92fbbs5ddf4fa6350c9e9e0653ae38",
            "userName": "wxid_gth3sdfrkq9lk622",
            "nickName": "苏醒",
            "signature": null,
            "sex": 2,
            "aliasName": null,
            "country": "中国",
            "bigHead": "http://wx.qlogo.cn/smmhead/ver_1/f6zWOO8ZXBCU69rTTG14UnKuIeicY6Vs5hVuKN6FDRIkGyQlGCCQYgKVIUJCA7eMohRIA9RRLrx9UZuAvZkhKWzVQnxIK0mqRvx14YjApXbA/0",
            "smallHead": "http://wx.qlogo.cns/mmhead/ver_1/f6zWOO8ZXBCU69rTTG14UnKuIeicY6Vs5hVuKN6FDRIkGyQlGCCQYgKVIUJCA7eMohRIA9RRLrx9UZuAvZkhKWzVQnxIK0mqRvx14YjApXbA/132"
        }
    ]
}

错误返回示例

{
    "message": "失败",
    "code": "1001",
    "data": null
}
Copyright © wkteam.cn 2020 all right reserved,powered by Gitbook该文件修订时间: 2021-10-21 20:15:51

results matching ""

    No results matching ""