Commit 208da061 by 李进峰

添加数据推送和回调接口文档

parent 7292ab60
- BaseUrl
- BaseUrl
- 生产环境: http://hw-gz59.heyqiwu.cn:60011
#### 推送外呼数据
URL: {BaseUrl}/out/push/call
METHOD: POST
RequestHeaders:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Timestamp | 请求时的时间戳,毫秒级 |
| Authorization | 签名, 将 appSecret+":"+timestamp 字符串md5提取摘要 |
| App-Channel-Id | 渠道ID |
RequestBody:
```json
{
"username":"admin", // 运营平台任务创建者的用户名
"outputCallTaskName":"进峰测试催收推送任务", // 任务名
"outputCallCallbackUrl":"http://hw-gz59.heyqiwu.cn:60011/test/callback", // 回调地址
"teleInfos":[ // 电话信息
{
"nickname":"李进峰", // 电话人姓名
"sex":"先生", // 电话人性别
"job":"工程师", // 电话人职位
"location":"深圳", // 电话人地点
"number":"13009633593" // 电话人号码
}
]
}
```
ResponseBody:
```json
{
"code": 1, // 1:表示成功, 其他表示失败
"msg": "成功", // 提示信息
"data": null
}
```
Example
```
curl --location --request POST 'http://hw-gz59.heyqiwu.cn:60011/out/push/call' \
--header 'App-Channel-Id: cuishou' \
--header 'Timestamp: 1651919947178' \
--header 'Authorization: 1c2adec36cf7e3dce37915c899d5f50e' \
--header 'Content-Type: application/json' \
--data-raw '{
"username":"admin",
"outputCallTaskName":"进峰测试催收推送任务",
"outputCallCallbackUrl":"http://hw-gz59.heyqiwu.cn:60011/test/callback",
"teleInfos":[
{
"nickname":"李进峰",
"sex":"先生",
"job":"工程师",
"location":"深圳",
"number":"13009633593"
}
]
}
'
```
#### 回调标签
URL: 推送外呼数据接口传的outputCallCallbackUrl字段链接
METHOD: POST
RequestHeaders:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Timestamp | 请求时的时间戳,毫秒级 |
| Authorization | 签名, 将 appSecret+":"+timestamp 字符串md5提取摘要 |
| App-Channel-Id | 渠道ID |
RequestBody:
```json
{
"teleNumber":"13009633593", // 用户电话
"tags":"还款意愿:拒绝还款,逾期原因:忘记有借款,通话状态:本人接通" // BOT打的标签
}
```
ResponseBody:
```json
{
"code": 1, // 1:表示成功, 其他表示失败
"msg": "成功", // 提示信息
"data": null
}
```
Example
```
curl --location --request POST 'http://hw-gz59.heyqiwu.cn:60011/test/callback' \
--header 'App-Channel-Id: cuishou' \
--header 'Timestamp: 1651919109374' \
--header 'Authorization: 591a889c55e958cd59a05a596d5f5c8d' \
--header 'Content-Type: application/json' \
--data-raw '{
"teleNumber":"13009633593",
"tags":"还款意愿:拒绝还款,逾期原因:忘记有借款,通话状态:本人接通"
}'
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment