同步外部联系人详细信息

简要描述:

同步外部联系人详细信息

请求URL:

请求方式:

  • POST

请求头Headers:

  • Authorization: Bearer xxx(PS:xxx是代表login接口返回,Bearer后面有个空格,除了login接口,后续所有接口都携带此参数)
  • Content-Type:application/json

参数:

参数名 必选 类型 说明
sessionId string
wxIds string 微信id,多条以“,”分隔

返回数据:

参数名 类型 说明
code number 200成功,其他失败
msg string 反馈信息
data object 返回对象
data[0].id number 微信id
data[0].weixin String
data[0].nickName String 昵称
data[0].sex number 1:男 2:女
data[0].headSmallImageUrl String 头像
data[0].isAdmin String 是否是管理员
data[0].friend String 是否是好友
data[0].flag String
data[0].corpId String
data[0].corporation String
data[0].title String
data[0].phone array 联系电话

请求参数示例

{
  "sessionId": "***",
  "wxIds":"788***45,168885***42"
}

成功返回示例

{
  "msg": "操作成功",
  "code": 200,
  "data": [
    {
      "id": "168***258437",
      "weixin": null,
      "nickName": "胡**",
      "sex": "1",
      "headSmallImageUrl": "https://wework.qpic.cn/wwpic/11***CSNOU2kL_1682385718/0",
      "isAdmin": "false",
      "friend": "false",
      "flag": "0",
      "corpId": "197***02451895",
      "corporation": "",
      "title": "阿***责人",
      "phones": [
        "1385***3401"
      ]
    },
    {
      "id": "168***258437",
      "weixin": null,
      "nickName": "胡**",
      "sex": "1",
      "headSmallImageUrl": "https://wework.qpic.cn/wwpic/11***CSNOU2kL_1682385718/0",
      "isAdmin": "false",
      "friend": "false",
      "flag": "0",
      "corpId": "197***02451895",
      "corporation": "",
      "title": "阿***责人",
      "phones": [
        "1385***3401"
      ]
    }
  ]
}

错误返回示例

{
  "msg": "session timeout or authentication token not found or invalid credit info",
  "code": 500
}
Copyright © wkteam.cn 2020 all right reserved,powered by Gitbook该文件修订时间: 2023-12-16 17:29:40

results matching ""

    No results matching ""