- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 客户查询
- 客户导入
- 客户
- 线索&待分配
- 商机
- 个人客户转企业客户
- 企业客户联系人
- 客户旅程
- 客户操作
- 按企微员工id列出企微好友客户详情POST
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP 任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
推送注册接口
POST
/api/v2/push-register
信息
1.
2.
3.
注意
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
Body 参数application/json
receiveAddress
string
推送消息接收地址
subscription
string
订阅的消息类型列表
示例
{"receiveAddress":"http://abc.com:20066/push-debug","subscription":"register,new_qw_customer,edit_qw_customer"}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v2/push-register' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'Content-Type: application/json' \
--data-raw '{"receiveAddress":"http://abc.com:20066/push-debug","subscription":"register,new_qw_customer,edit_qw_customer"}'
返回响应
🟢200成功
application/json
Body
code
integer
业务状态码
message
string
业务状态说明。
示例
{
"code": 0,
"message": "已收到注册消息,请注意接收确认回调"
}
🟢200异常