添加企微好友事件
回调示例
{
"event": {
"name": "贾宝玉诺曼底登陆",
"type": 1,
"avatar": "http://wx.qlogo.cn/mmhead/Iic9WLWEQMg1WMEEcswNX0XTwVSXbkxddiaeYs4fnodwibZwVUEs47MxFUGYmSwq3SRtLIBDGSoEm8/0",
"gender": 1,
"userid": "rmlC2n8nfvQjEduFUL0JXapwwoo8D1ZGlcDyIWGIpw4",
"lost_state": false,
"customer_id": "wxicVEwD1-bdull1odNVzmsKLQJe4pZV2zQbnu4KJPc",
"remark_mobiles": [
"15152517714"
],
"external_userid": "wmW2WmDAAAdooseeQxlUCbwkQiXE2Rbw"
},
"header": {
"to_app": "wloa89d1c1a0de7484347e8718b52faff851",
"event_type": "add_customer",
"time_stamp": "1745818723565"
}
}
回调字段说明
名称 | 类型 | 说明 |
---|---|---|
» event | 回调事件具体内容 | |
»» name | string | 企微好友的姓名 |
»» type | integer | 好友类型:1 表示微信用户,2 表示企业微信用户 |
»» avatar | string | 好友头像的 URL |
»» gender | integer | 性别:0 -未知,1 -男,2 -女 |
»» userid | string | 添加该好友的员工用户 ID |
»» lost_state | boolean | 是否为流失状态:true 表示已流失,false 表示未流失 |
»» customer_id | string | 外部联系人的用户 ID(平台生成) |
»» remark_mobiles | array | 员工对该好友的手机号备注(数组) |
»» external_userid | string | 企微外部联系人 ID(企业微信侧) |
» header | 回调参数头 | |
»» to_app | string | 回调应用的appid |
»» event_type | string | 事件类型 |
»» time_stamp | long | 回调时间,13位时间戳,精确到毫秒 |