智能消息Api配置推送地址接口
1、概述
新增智能消息Api配置推送地址接口,返回配置推送地址操作结果。
2、接口地址
POST https://rcsapi.hanwg.com/report/config
3、请求参数
3.1、请求路径参数
见全局参数
3.2、请求头参数
3.3、请求体参数
| 名称 | 数据类型 | 描述 | |
|---|---|---|---|
| reportSettings | array[Object] | 可以配置多个推送类型和地址 | |
| rptPushType | int | 推送类型 31:智能消息模板审核结果通知 32:智能消息素材审核结果通知 33:智能消息下行状态报告 |
|
| rptPushUrl | string | 推送地址 | |
4、请求示例
POST http://172.30.0.63:8002/report/config
Authorization: "ZGgxODUyODowODc4ZjQwMTAxNzg1MzUzYmIxNzkxNTAwYzhjZmQ1ZQ=="
Date: 2023-06-14 10:25:24
User-Agent: Apifox/1.0.0 (https://www.apifox.cn)
Content-Type: application/json
Accept: */*
Host: 172.30.0.63:8002
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Body 类型 : application/json
{
"reportSettings":
[
{
"rptPushType": 33,
"rptPushUrl": "http://172.30.0.224:8081/receive/mtAimReport"
},
{
"rptPushType": 32,
"rptPushUrl": "http://172.18.2.32:8081/simulator/aim/report/mt"
},
{
"rptPushType": 31,
"rptPushUrl": "http://172.30.0.3:8003/simulator/aim/report/mt"
}
]
}
5、客户响应参数
| 名称 | 数据类型 | 是否必有 | 描述 | |
|---|---|---|---|---|
| code | int | 是 | 响应状态码 | |
| desc | string | 是 | 响应描述 | |
| result | boolean | 条件 | 响应内容 需:code = 0(请求成功) |
|
6、客户响应示例
{
"code": 0,
"desc": "请求成功",
"result": true
}
文档更新时间: 2025-12-17 10:25 作者:王超