contacts/retrieve-enterprise-friend-info

Description

  • Accessing Business User Data

Request URL

  • http://127.0.0.1:8888/api/

Request Method

  • POST

Parameters

Parameter NameRequiredParameter TypeDescription
typeYesintAPI ID
userNameYesstringEnterprise WeChat user's wxid
chatroomUserNameNostringChat Room Id, If specified, user information will be fetched via group chat.

Request Example

Retrieving the nicknames of enterprise contacts. The nicknames of enterprise contacts end with "@openim".
 {
  "type": 84,
  "userName": "xxxx@openim"
 }

 {
  "type": 84,
  "userName": "xxxx@openim",
  "chatroomUserName": "xxx@chatroom"
 }

Return Example

  {
    "data": {
      "status": 0,
      "desc": "",
    }
  }

Return Parameter Description

Parameter NameParameter TypeDescription
error_codeintError code
descriptionstringError Description
datajsonBusiness data

Remark