Commit d7512d8c by 李进峰

update

parent d357bd7c
- BaseUrl - BaseUrl
...@@ -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生成规则
``` ```
......
#### 号码导入-JSON方式 #### 号码导入-JSON方式
...@@ -124,4 +124,57 @@ curl --location --request POST 'http://47.111.189.55:60012/out/tele/number/to/id ...@@ -124,4 +124,57 @@ curl --location --request POST 'http://47.111.189.55:60012/out/tele/number/to/id
"teleNumber":"19925432904", "teleNumber":"19925432904",
"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
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