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
f0592dfa
Commit
f0592dfa
authored
Jul 15, 2023
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d4380440
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
318 additions
and
0 deletions
+318
-0
付费相关接口.md
app_doc/付费相关接口.md
+142
-0
作品数据.md
app_doc/作品数据.md
+79
-0
内部接口调用送花.md
app_doc/内部接口调用送花.md
+53
-0
转座席文档.md
inboundcall/转座席文档.md
+44
-0
No files found.
app_doc/付费相关接口.md
0 → 100644
View file @
f0592dfa
-
基本地址
-
基本地址
-
http://api-pre.heyqiwu.cn
##### 剧情点付费权益收回
URL: {基本地址}:18082/api/user/pay/point/recall
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
RequestBody:
```
{
"uid":"62691a7c91c0705d5cd29867", // 用户ID
"controlId":"diantaizhubo", // 控制点
"workName":"午夜电台主播" // 作品名
}
```
responseBody:
```
SUCCESS:
{
"code": 1, // 1: 表示成功, 其他表示失败
"msg": "成功",
"data": null
}
```
Example:
```
curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/user/pay/point/recall' \
--header 'App-Channel-Id: OPPOWatch-watch-sdk-test' \
--header 'Content-Type: application/json' \
--data-raw '{
"uid":"62691a7c91c0705d5cd29867",
"controlId":"diantaizhubo",
"workName":"午夜电台主播"
}'
```
##### 系列付费权益收回
URL: {基本地址}:18082/api/series/pay/recall
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 必填 |
RequestBody:
```
{
"uid":"62861242a0e7026d78d5d600", // 用户ID
"workName":"环球大富翁" // 作品名
}
```
responseBody:
```
SUCCESS:
{
"code": 1, // 1: 表示成功, 其他表示失败
"msg": "成功",
"data": null
}
```
Example:
```
curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/series/pay/recall' \
--header 'App-Channel-Id: OPPOWatch-watch-sdk-test' \
--header 'Content-Type: application/json' \
--data-raw '{
"uid":"62861242a0e7026d78d5d600",
"workName":"环球大富翁"
}'
```
##### 延长vip时间
URL: {基本地址}:18082/api/series/pay/duration/extend
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
RequestBody:
```
{
"uid":"001", // 用户ID
"channelId":"tongyong-phone-mobileapp-test", // 渠道ID
"duration":60, // 需要延长的vip时间, 单位分钟
"price":20, // 价格, 单位元
"note":"你好" // 注释
}
```
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
Example:
```
curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/series/pay/duration/extend' \
--header 'Content-Type: application/json' \
--data-raw '{
"uid":"001",
"channelId":"tongyong-phone-mobileapp-test",
"duration":60,
"price":20,
"note":"你好"
}'
```
\ No newline at end of file
app_doc/作品数据.md
0 → 100644
View file @
f0592dfa
-
基本地址
-
基本地址
-
测试环境: http://api-pre.heyqiwu.cn:18082
-
生产环境: http://api-pro.heyqiwu.cn:18082
#### 获取作品信息(通过作品名)
URL: {基本地址}/api/work/info?workName={作品名}
METHOD: GET
RequestHeaders:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 渠道ID, 必填 |
ResponseBody:
```
json
{
"code"
:
1
,
//
1
表示成功,其他表示失败
"msg"
:
"成功"
,
//
提示信息
"data"
:
{
"workname"
:
"小狗小白"
,
//
作品名称
"authorname"
:
"小荣"
,
//
作者
"intro"
:
"森林里面的小狗小白和弟弟小黑在玩游戏的时候,遇到了大青蛇在欺负小青蛙,他们会怎么做呢?"
,
//
简介
"preface"
:
"小白是一条聪明又可爱的小狗哦,跟我一起去认识它吧。"
,
//
作者有话说
"labels"
:
[
//
标签
"简单"
,
"动物"
,
"儿童"
,
"VIP"
,
"益智"
],
"totalComment"
:
0
,
//
评论总数
"applyTime"
:
1603536940000
,
//
上线时间
"flowerNum"
:
0
,
//
送花数
"favoriteNum"
:
12
,
//
收藏数
"hotNum"
:
9121
,
//
热度
"bannerImgUrl"
:
"http://api-pre.heyqiwu.cn/media/gz25bot0806xiaogouxiaobaiqu012170840/img/dEMSYYC1603351782068_cover_detail_page_1x1_512x512_50.jpeg"
//
封面
}
}
```
RequestExample:
```
curl --location --request GET 'http://api-pre.heyqiwu.cn:18082/api/work/info?workName=小狗小白' \
--header 'App-Channel-Id: xtcv1-watch-sdk-test'
```
ResponseExample:
```
{
"code": 1,
"msg": "成功",
"data": {
"workname": "小狗小白",
"authorname": "小荣",
"intro": "森林里面的小狗小白和弟弟小黑在玩游戏的时候,遇到了大青蛇在欺负小青蛙,他们会怎么做呢?",
"preface": "小白是一条聪明又可爱的小狗哦,跟我一起去认识它吧。",
"labels": [
"简单",
"动物",
"儿童",
"VIP",
"益智"
],
"totalComment": 0,
"applyTime": 1603536940000,
"flowerNum": 0,
"favoriteNum": 12,
"hotNum": 9121,
"bannerImgUrl": "http://api-pre.heyqiwu.cn/media/gz25bot0806xiaogouxiaobaiqu012170840/img/dEMSYYC1603351782068_cover_detail_page_1x1_512x512_50.jpeg"
}
}
```
\ No newline at end of file
app_doc/内部接口调用送花.md
0 → 100644
View file @
f0592dfa
-
基本地址
-
基本地址
-
测试环境: http://api-pre.heyqiwu.cn
-
生产环境: http://api-pro.heyqiwu.cn
##### 内部调用送花接口
URL: {基本地址}:18082/api/flower/send/internal
METHOD: POST
Headers:
| key | value|
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
RequestBody:
```
{
"workName":"小狗小白", // 作品名
"count":"12", // 送花数量
"channelId": "xiaowutongyongpad-pad-sdk-test", // 渠道ID
"uid":"123" // 用户ID
}
```
ResponseBody:
```
SUCCESS:
{
"code": 1, // 1: 表示成功, 其他表示失败
"msg": "成功",
"data": null
}
```
Example:
```
curl --location --request POST 'http://api-pre.heyqiwu.cn:18082/api/flower/send/internal' \
--header 'Content-Type: application/json' \
--data-raw '{
"workName":"小狗小白",
"count":"12",
"channelId": "xiaowutongyongpad-pad-sdk-test",
"uid":"123"
}'
```
\ No newline at end of file
inboundcall/转座席文档.md
0 → 100644
View file @
f0592dfa
#### 转座席回调
#### 转座席回调
URL: {SIP头的transferUrl}
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | token |
RequestBody:
```
json
{
"outSessionId"
:
""
,
//
客户会话ID
,
透传SIP头的custom-session-id
"dataId"
:
""
,
//
数据ID
,
内部应该是用不到,透传SIP头custom-pkg-data中的dataId
"usercode"
:
""
//
座席工号
,
透传SIP头custom-pkg-data中的usercode
}
```
ResponseBody:
```
json
SUCCESS
:
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
{
"agentstate"
:
1
//
坐席状态,
0
:空闲;
1
:忙
}
}
```
### 大致流程
外呼桥接内呼时, sip 头部带有相关转座席的参数(客户会话ID, 座席工号),会存储到内呼会话的session中
当bot在标签中添加"转人工客服",
-
内呼回调客户服务器查询座席工号是否空闲
-
空闲 -> 机器人变量 "正式转接坐席状态":"空闲"
-
忙 -> 机器人变量 "正式转接坐席状态":"忙"
\ 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