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
fadc8ac7
Commit
fadc8ac7
authored
Apr 16, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d11c15f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
34 deletions
+91
-34
上传音箱认证文件.md
platform/上传音箱认证文件.md
+1
-34
音箱相关.md
platform/音箱相关.md
+90
-0
No files found.
platform/上传音箱认证文件.md
deleted
100644 → 0
View file @
d11c15f5
##### 导入NER过滤
++ /dev/null
##### 导入NER过滤
URL: {backUrl}/audiobox/spirit/authority/upload?botAccount={BOT帐号}
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
RequestBody:
```
FormData类型
key: file
value: 二进制文件
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
\ No newline at end of file
platform/音箱相关.md
0 → 100644
View file @
fadc8ac7
##### 获取音箱配置
##### 获取音箱配置
URL: {backUrl}/audiobox/config/info?platform={平台代号}&botAccount={BOT帐号}
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
RequestParams:
| key | describe |
| :----------- | :------------ |
| platform | 音箱平台代号,值有 xiaodu, xiaoai, spirit |
| botAccount | BOT帐号 |
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"publicKey": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDTFiGHbokGbdAe7CGej1teYKXDu2J/vWW2jEh8MyajXgwGc4eh1xe69GaUHMN1xFijwD1srieXqmX+OlvzciUJHHXVqwP+Tr3GcNbgJs07fLFs9c6JLdnur+krnL7x6D8Sxo30yloekK/tsSv+cJnTjqYpC/67h9mb4mI7aNnATwIDAQAB", // 公钥
"url": "https://audio-box.heyqiwu.cn/xiaodu/single/bot/botAccount%3D6080626246%26serverCode%3Dhw-gz25" // 地址
}
}
```
Example:
```
curl --location --request GET 'http://hw-gz25.heyqiwu.cn:18082/audiobox/config/info?platform=xiaodu&botAccount=6080626246' \
--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTVRnMU16YzJOVGdzSW1WNGNDSTZNVFl4T0RVME5EZzFPQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpkOS4zeVRaUUdWVEdZeFJYRzBOM1hfTU5QbXZVOTczd3BLZlVSOW5Oa2pEYVZvOnMwMHBlcnMzY3JldA==' \
--header 'botAccount: 6080626246' \
--header 'groupId: 49' \
--header 'mul: true' \
--header 'projectId: 1'
```
##### 上传天猫认证文件
URL: {backUrl}/audiobox/spirit/authority/upload?botAccount={BOT帐号}
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Authorization | TOKEN |
| botAccount | bot帐号 |
| groupId | 组ID |
| mul | true |
| projectId | 作品ID |
RequestBody:
```
FormData类型
key: file
value: 二进制文件
```
ResponseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": null
}
```
Example:
```
curl --location --request POST 'http://hw-gz25.heyqiwu.cn:18082/audiobox/spirit/authority/upload?botAccount=6080626246' \
--header 'Authorization: Basic ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKcFlYUWlPakUyTVRnME9ERTNNelFzSW1WNGNDSTZNVFl4T0RRNE9Ea3pOQ3dpWVhWMGFHOXlhWFI1SWpveExDSnBaQ0k2TXpkOS5ON2lDbk9pdHBkSlgxeDRtMEloS0FYZGJ6OEE3ak1CcXZudkpLaG9MN1hrOnMwMHBlcnMzY3JldA==' \
--header 'botAccount: 6080626246' \
--header 'groupId: 49' \
--header 'mul: true' \
--header 'projectId: 1' \
--form 'file=@"/home/feng/tmp/test.txt"'
```
\ 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