Toggle navigation
Toggle navigation
This project
Loading...
Sign in
docs
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chong
2019-12-02 18:46:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0acd8f0ce06342d884d0a86c0f23939f1906e756
0acd8f0c
1 parent
397f5095
思维课程json
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
233 additions
and
0 deletions
全能思维课/全能课程控制消息.md
全能思维课/全能课程控制消息.md
0 → 100644
View file @
0acd8f0
> env.url: `https`://api[api-online.test].boxfish.cn
>
> notes:
>
*
`默认所有接口都要携带token`
access_token
# 课程json全能思维课IM
*
URL {env.url}/omnipotent/student/{lesson}
*
`GET`
Method
*
path 参数:
*
request 参数:
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
| lesson | String | Y |课程id| |
*
response:
http code 404 课程不存在
http code 200
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
| omnipotent_im | List | N |课程消息对象| |
*
消息对象
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
| action | Long | Y |动作| |
| text| String | Y | 文案| |
*
单词消息
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
|omnipotent_words_word_spell | String | Y |单词拼写| |
|omnipotent_words_word_read_recite | String | Y |单词读背| |
|omnipotent_words_sentence_spell | String | N |句子拼写| |
|omnipotent_words_sentence_read_recite | String | N |句子读背| |
```
json
{
"omnipotent_im"
:
[{
"action"
:
"omnipotent_words_word_spell"
,
"text"
:
"开始拼单词"
},
{
"action"
:
"omnipotent_words_word_read_recite"
,
"text"
:
"开始单词练习"
},
{
"action"
:
"omnipotent_words_sentence_spell"
,
"text"
:
"开始拼写语块"
},
{
"action"
:
"omnipotent_words_sentence_read_recite"
,
"text"
:
"开始语块练习"
}
]
}
```
*
发音消息
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
|omnipotent_phonics_english_content_spell | String | N |拼写| |
|omnipotent_phonics_english_content_read_recite | String | Y |读背| |
```
json
{
"omnipotent_im"
:
[
{
"action"
:
"omnipotent_phonics_english_content_spell"
,
"text"
:
"开始拼写语块"
},
{
"action"
:
"omnipotent_phonics_english_content_read_recite"
,
"text"
:
"开始语块练习"
}
]
}
```
*
语法消息
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
|omnipotent_grammar_sentence_spell | String | N |拼写| |
|omnipotent_grammar_sentence_read_recite | String | Y |读背| |
```
json
{
"omnipotent_im"
:
[
{
"action"
:
"omnipotent_grammar_sentence_spell"
,
"text"
:
"开始拼写语块"
},
{
"action"
:
"omnipotent_grammar_sentence_read_recite"
,
"text"
:
"开始语块练习"
}
]
}
```
*
图片短对话消息
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
|omnipotent_image_short_dialog_spell_N | String | N |拼写,n是数组下标 从0开始| |
|omnipotent_image_short_dialog_read_recite_N | String | Y |读背,n是数组下标 从0开始| |
```
json
{
"omnipotent_im"
:
[{
"action"
:
"omnipotent_image_short_dialog_spell_0"
,
"text"
:
"开始拼对话第1句"
},
{
"action"
:
"omnipotent_image_short_dialog_read_recite_0"
,
"text"
:
"开始对话第1句练习"
},
{
"action"
:
"omnipotent_image_short_dialog_spell_1"
,
"text"
:
"开始拼对话第2句"
},
{
"action"
:
"omnipotent_image_short_dialog_read_recite_1"
,
"text"
:
"开始对话第2句练习"
}
]
}
```
*
视频短对话消息
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
|omnipotent_video_short_dialog_read_recite_N | String | Y |读背,n是数组下标 从0开始| |
```
json
{
"omnipotent_im"
:
[{
"action"
:
"omnipotent_article_choice_question"
,
"text"
:
"开始文章问题选择题"
},
{
"action"
:
"omnipotent_long_dialog_read_0"
,
"text"
:
"开始文章第一段练习"
},
{
"action"
:
"omnipotent_long_dialog_read_1"
,
"text"
:
"开始文章第二段练习"
},
{
"action"
:
"omnipotent_long_dialog_read_2"
,
"text"
:
"开始文章第三段练习"
}
]
}
```
*
长对话消息
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
|omnipotent_article_choice_question | String | N |文章问题| |
|omnipotent_long_dialog_read_N | String | Y |读背,n是数组下标 从0开始| |
```
json
{
"omnipotent_im"
:
[{
"action"
:
"omnipotent_video_short_dialog_read_recite_0"
,
"text"
:
"开始对话第1句练习"
},
{
"action"
:
"omnipotent_video_short_dialog_read_recite_1"
,
"text"
:
"开始对话第2句练习"
}
]
}
```
*
文章消息
|参数名 | 类型 | 必填 | 说明 | 示例 |
|-------------|--------|------|----------|------|
|omnipotent_article_choice_question | String | N |文章问题| |
|omnipotent_article_spell_N | String | Y |拼写,n是数组下标 从0开始| |
|omnipotent_article_spell_read_N | String | Y |读背,n是数组下标 从0开始| |
```
json
{
"omnipotent_im"
:
[{
"action"
:
"omnipotent_article_choice_question"
,
"text"
:
"开始文章问题选择题"
},
{
"action"
:
"omnipotent_article_spell_0"
,
"text"
:
"开始拼写第一段文章"
},
{
"action"
:
"omnipotent_article_spell_read_0"
,
"text"
:
"开始文章第一段练习"
},
{
"action"
:
"omnipotent_article_spell_1"
,
"text"
:
"开始拼写第二段文章"
},
{
"action"
:
"omnipotent_article_spell_read_1"
,
"text"
:
"开始文章第二段练习"
},
{
"action"
:
"omnipotent_article_spell_2"
,
"text"
:
"开始拼写第三段文章"
},
{
"action"
:
"omnipotent_article_spell_read_2"
,
"text"
:
"开始文章第三段练习"
},
{
"action"
:
"omnipotent_article_spell_3"
,
"text"
:
"开始拼写第四段文章"
},
{
"action"
:
"omnipotent_article_spell_read_3"
,
"text"
:
"开始文章第四段练习"
}
]
}
```
...
...
Please
register
or
login
to post a comment