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
2abf3641
Commit
2abf3641
authored
Mar 02, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
692b4eee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
46 deletions
+119
-46
cache_api.md
app_doc/cache_api.md
+119
-0
work_data_api.md
app_doc/work_data_api.md
+0
-46
No files found.
app_doc/cache_api.md
0 → 100644
View file @
2abf3641
-
数据后台基本地址
-
生产环境: http://api-pro.heyqiwu.cn:18082
-
测试环境: http://api-pre.heyqiwu.cn:18082
##### 获取所有作品名称
URL: {数据后台基本地址}/api/v2/work/name/all
METHOD: GET
Headers:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"托尼去哪了": [ // key为作品名, value为作品别名列表
"托尼消失了",
"托尼去哪儿了",
"托尼跑哪去了?",
"托你不见了",
"寻找托尼",
"托尼去哪里了",
"托尼失踪了",
"托尼的踪迹",
"托尼哪去了"
],
"小太阳": [
"贝瓦"
]
}
}
```
##### 获取所有作品名称->接口更新时间
URL: {数据后台基本地址}/api/v2/work/name/all/update/time
METHOD: GET
Headers:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": 1614676575253 // 更新时间ms级别
}
```
##### 所有渠道的更新时间
URL: {数据后台基本地址}/api/v2/channel/all/update/time
METHOD: GET
Headers:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"jiaoyouC-tv-api-test": 1614676665253 // key:渠道id, value: 渠道作品更新时间ms级别
}
}
```
##### 获取渠道的所有作品信息
URL: {数据后台基本地址}/api/work/all
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------: |
| App-Channel-Id | 渠道(可为空,为空时为XIAOWU) |
ResponseBody:
```
{
"code": 1,
"msg": "成功",
"data": [
{
"seriesName": "趣味问答", // 系列名称
"audioType": 1, // audioType: 0->取晓悟语音,1->取交游这边语音
"pay": false, // 1: 表示付费,0: 表示免费
"title": "宇宙迷航", // 作品名称
"type": 1, // type: 1:作品BOT 2:功能BOT 3:附属作品 4: 第三方接入 5: 虚拟作品
"nickNames": [ // 作品别名列表
"宇宙迷航"
],
"username": "gz38botyuzhoumihang0118324292485" // bot帐号
}
]
}
```
app_doc/work_data_api.md
View file @
2abf3641
...
@@ -479,52 +479,6 @@ FAILTURE:
...
@@ -479,52 +479,6 @@ FAILTURE:
}
}
```
```
##### 获取审核通过的所有title和username
URL: baseUrl:18082/api/work/all
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------: |
| App-Channel-Id | 渠道(可为空) |
ResponseBody:
```
{
"code": 1,
"msg": "成功",
"data": [
{
"audioType": 0,
"pay": false,
"title": "妖刀异闻录",
"type": 1,
"username": "823307669"
},
{
"audioType": 1,
"pay": false,
"title": "会数学的杰瑞",
"type": 1,
"username": "2675579304"
},
{
"audioType": 1,
"pay": false,
"title": "小太阳",
"type": 1,
"username": "371405549"
}
]
}
// type: 1:作品BOT 2:功能BOT 3:附属作品
// audioType: 0->取晓悟语音,1->取交游这边语音
```
##### 更新作品数据
##### 更新作品数据
URL: baseUrl:18082/api/update/data?botAccount={}&action="workInfo"
URL: baseUrl:18082/api/update/data?botAccount={}&action="workInfo"
...
...
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