企微客户新增推送
推送数据
appId、timestamp、version、sign,详见推送数据格式约定
Base64 编码加密数据,加密方式详见推送数据格式约定。加密前数据为UTF8编码JSON:
JSON字段 | 类型 | 可空 | 说明 |
---|---|---|---|
noise | 数字 | 否 | 随机数。接收方成功接收处理消息后需要在响应中回复此值。 |
msgId | 数字 | 否 | 消息id。 |
type | 字符串 | 否 | 消息类型。此类型消息固定为 new_qw_customer |
content | 对象 | 否 | 消息内容 |
content.externalUserId | 字符串 | 否 | 客户企微id |
content.unionId | 字符串 | 是 | 客户unionId |
content.qwUserId | 字符串 | 否 | 增加客户的销售企微id |
content.mobiles | 字符串列表 | 是,但可能为空列表 | 客户手机号 |
content.wechatNickname | 字符串 | 是 | 微信昵称 |
content.wechatAvatar | 字符串 | 是 | 微信头像链接 |
推送加密前JSON:
{"type":"new_qw_customer","noise":-203478414587272730,"msgId":999,"content":{"externalUserId":"","unionId":"","qwUserId":"","mobiles":["15678789757"],"wechatNickname":"jack","wechatAvatar":"http://dad.com/ds.jpg"}}