Description
- Accessing Business User Data
Request URL
http://127.0.0.1:8888/api/
Request Method
Parameters
Parameter Name | Required | Parameter Type | Description |
---|
type | Yes | int | API ID |
userName | Yes | string | Enterprise WeChat user's wxid |
chatroomUserName | No | string | Chat 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 Name | Parameter Type | Description |
---|
error_code | int | Error code |
description | string | Error Description |
data | json | Business data |