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
a41f4c00
Commit
a41f4c00
authored
Jan 12, 2021
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f4bc24a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
3d-game-api-chat.md
app_doc/3d-game-api-chat.md
+44
-0
No files found.
app_doc/3d-game-api-chat.md
0 → 100644
View file @
a41f4c00
##### 单BOT对话接口
URL: http://api-3d-game.heyqiwu.cn/api/open/v1/chat
METHOD: POST
RequestHeaders:
| key | value |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | DEFAULT(选填) |
RequestBody:
```
{
"uid":"TEST0",
"title":"小狗小白",
"msg":"开始",
"chatKey": "jiaoyou-3d-game-testTEST0@@@gz25bot0806xiaogouxiaobaiqu012170840@@@@vlonIxdNXyfY56yn01rk" // 开始一段对话没有,后续需要取data.chatKey作为多轮对话
}
```
responseBody:
```
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"chatKey": "jiaoyou-3d-game-testTEST0@@@gz25bot0806xiaogouxiaobaiqu012170840@@@@vlonIxdNXyfY56yn01rk",
"plotImgUrl": "",
"bgmUrl": "",
"dialogList": [
{
"npcName": "林老师",
"text": "小朋友你好,我是爱讲故事的林老师。我们今天要讲的是小狗小白的故事。老师讲完一段故事,就会问你一个问题。你能做到认真听讲吗?",
"audioUrl": "http://api-pre.heyqiwu.cn:9663/api/audio/cache/gz25bot0806xiaogouxiaobaiqu012170840/?filename=/gz25bot0806xiaogouxiaobaiqu012170840/record/林老师/e653af857401be16d60d50c3f244aa91.mp3"
}
]
}
}
```
\ 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