# 新好友请求 - 200006
[被动回调]新的好友请求回调
说明:当机器人接到好友请求,我们会将这个申请添加好友的用户信息和请求回调给商家。便于之后选择是否添加该好友。
encoding_content解密后的结构
{
"event_type": 200006,
"err_code": 0,
"err_msg": "",
"serial_no": "请求序列号",
"robot_id": "机器人id",
"data": {
"contact_list": [{
"contact_id": "客户id",
"name": "姓名",
"base64_name": "base64为编码后的用户姓名",
"profile_photo": "用户头像url",
"gender": 1,
"is_verified": true,
"real_name": "真实姓名",
"alias": "别名",
"base64_alias": "base64为编码后的用户别名",
"company": "所属企业",
"add_time": "添加时间",
"account_id": "企业微信user id",
"message": "招呼语"
}]
}
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
event_type | int | 事件类型,200006 |
err_code | int | 状态码,0为正常,非0代表错误 |
err_msg | string | 错误信息 |
serial_no | string | 请求序列号 |
robot_id | string | 机器人id |
data | object | 返回数据 |
contact_list | array | 好友请求列表 |
contact_id | string | 客户id |
name | string | 姓名 |
base64_name | string | base64为编码后的用户姓名 |
profile_photo | string | 用户头像url |
gender | int | 性别:1男 2女 |
is_verified | bool | 是否可加客户好友:true可加;false不可加(非实名账号,无法加客户为好友) |
real_name | string | 真实姓名 |
alias | string | 别名 |
base64_alias | string | base64为编码后的用户别名 |
company | string | 所属企业,该字段若为“微信”,则代表是微信用户添加 |
add_time | string | 添加时间 |
account_id | string | 企业微信user id |
message | string | 招呼语 |