Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
208da061
Commit
208da061
authored
May 07, 2022
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加数据推送和回调接口文档
parent
7292ab60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
124 additions
and
0 deletions
+124
-0
数据推送和回调接口.md
callmanage/数据推送和回调接口.md
+124
-0
No files found.
callmanage/数据推送和回调接口.md
0 → 100644
View file @
208da061
-
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment