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
jixudong
jiaoyou_doc
Commits
d7512d8c
Commit
d7512d8c
authored
Dec 14, 2022
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d357bd7c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
23 deletions
+73
-23
运营-数据推送和回调接口.md
callmanage2/运营-数据推送和回调接口.md
+18
-22
外呼-外部服务调用文档.md
outboundcall/外呼-外部服务调用文档.md
+55
-1
No files found.
callmanage2/运营-数据推送和回调接口.md
View file @
d7512d8c
-
Bas
eUrl
-
Bas
eUrl
...
@@ -217,11 +217,25 @@ RequestBody:
...
@@ -217,11 +217,25 @@ RequestBody:
"teleNumber"
:
""
,
//
用户电话
"teleNumber"
:
""
,
//
用户电话
"teleEncodeNumber"
:
"simo_test_20221009142217_7"
,
//
加密后的号码
"teleEncodeNumber"
:
"simo_test_20221009142217_7"
,
//
加密后的号码
"teleServiceName"
:
"默认"
,
//
业务名称
"teleServiceName"
:
"默认"
,
//
业务名称
"customSessionId"
:
"121231"
,
"tags"
:
"还款意愿:拒绝还款,逾期原因:忘记有借款,通话状态:本人接通"
,
//
BOT打的标签
"tags"
:
"还款意愿:拒绝还款,逾期原因:忘记有借款,通话状态:本人接通"
,
//
BOT打的标签
"customSessionId"
:
"121231"
,
//
自定义sessionId
"callStatus"
:
1
,
//
1
:
未接通,
4
:
通话完成
,
0
:
已接通
"callStatus"
:
1
,
//
1
:
未接通,
4
:
通话完成
,
0
:
已接通
"callbackType"
:
1
//
1
:
正常完成回调;
2
:
短信通知
"callbackType"
:
1
,
//
1
:
正常完成回调;
2
:
短信通知
"outboundSipStatus"
:
200
,
//
线路状态码
"round"
:
2
,
//
对话轮数
"diaTimeLen"
:
60000
,
//
通话时长
,
单位ms
"userQuestSize"
:
3
,
//
用户提问次数
"hangUpTime"
:
1644811085000
,
//
挂断时间
"switchTurnOnTime"
:
1644811085000
,
//
接通时间
"recordAudioUrl"
:
"http://hw-gz44.heyqiwu.cn:60091/resource/media/audio/telephone_1644811084297_7704/telephone_1644811084297_7704.mp3"
,
//
录音文件
"dialogs"
:[
//
对话记录
{
"timestame"
:
1644811085000
,
//
时间
"text"
:
"交游开始"
,
//
对话文本
"audioUrl"
:
null
,
//
音频地址
"position"
:
0
//
0
:
表示用户,
1
:
表示bot
}
]
}
}
```
```
...
@@ -235,24 +249,6 @@ ResponseBody:
...
@@ -235,24 +249,6 @@ ResponseBody:
}
}
```
```
Example
```
curl --location --request POST 'http://hw-gz26.heyqiwu.cn:60013/test/callback' \
--header 'App-Channel-Id: cuishou' \
--header 'Timestamp: 1651919109374' \
--header 'Authorization: 591a889c55e958cd59a05a596d5f5c8d' \
--header 'Content-Type: application/json' \
--data-raw '{
"teleNumber":"",
"teleEncodeNumber": "simo_test_20221009142217_7",
"teleServiceName": "默认",
"tags":"还款意愿:拒绝还款,逾期原因:忘记有借款,通话状态:本人接通",
"customSessionId":"121231",
"callStatus": 1,
}'
```
#### 外呼对话系统uid生成规则
#### 外呼对话系统uid生成规则
```
```
...
...
outboundcall/外呼-外部服务调用文档.md
View file @
d7512d8c
####
号码导入-JSON方式
####
号码导入-JSON方式
...
@@ -125,3 +125,56 @@ curl --location --request POST 'http://47.111.189.55:60012/out/tele/number/to/id
...
@@ -125,3 +125,56 @@ curl --location --request POST 'http://47.111.189.55:60012/out/tele/number/to/id
"teleServiceName":"默认"
"teleServiceName":"默认"
}'
}'
```
```
#### ID转号码
URL: {基本地址}/out/tele/id/to/number
METHOD: POST
RequestHeaders:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Timestamp | 请求时的时间戳,毫秒级 |
| Authorization | 签名, 将 appSecret + ":" + timestamp 字符串md5提取摘要 |
| App-Channel-Id | 渠道ID |
RequestBody:
```
json
{
"teleEncodeNumber"
:
"qiwu_test_20221104114443_3"
,
//
号码ID
"teleServiceName"
:
"IMPORT_TEST"
//
业务名
}
```
ResponseBody:
```
json
{
"code"
:
1
,
//
1
:表示查询成功;
其他表示失败
"msg"
:
"成功"
,
"data"
:
{
"teleEncodeNumber"
:
"qiwu_test_20221104114443_3"
,
//
号码ID
"teleServiceName"
:
"IMPORT_TEST"
,
//
业务名
"teleNumber"
:
"13871940702"
//
真实号码
}
}
```
Example:
```
curl --location --request POST 'http://hw-gz3.heyqiwu.cn:60012/out/tele/id/to/number' \
--header 'App-Channel-Id: qiwu-test' \
--header 'Timestamp: 1670304976574' \
--header 'Authorization: 1a25bcae0f4ada9e6fe5a565ec384b60' \
--header 'Content-Type: application/json' \
--data-raw '{
"teleEncodeNumber":"qiwu_test_20221104114443_3",
"teleServiceName":"IMPORT_TEST"
}'
```
\ 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