Weteach-小程序


课程播放列表

<p><strong>简要描述:</strong> </p> <ul> <li>课程播放列表接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/api/tool/course/{id}/playlist</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>课程ID</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "result": "success", "data": [ { "id": 2400, "name": "第三十五课《六个孩子的故事》", "has_quiz": 0, "sort": 1, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2400, "path": "http://ks3-cn-beijing.ksyun.com/learn/35%E5%85%AD%E4%B8%AA%E5%AD%A9%E5%AD%90%E7%9A%84%E6%95%85%E4%BA%8B.mp4", "type": "video" } }, { "id": 2399, "name": "第三十四课《一曲胡笳救孤城》", "has_quiz": 0, "sort": 2, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2399, "path": "http://ks3-cn-beijing.ksyun.com/learn/34%E4%B8%80%E6%9B%B2%E8%83%A1%E7%AC%B3%E6%95%91%E5%AD%A4%E5%9F%8E.mp4", "type": "video" } }, { "id": 2398, "name": "古诗诵读《晚春》和《游山西村(节选)》", "has_quiz": 0, "sort": 3, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2398, "path": "http://ks3-cn-beijing.ksyun.com/learn/33%E5%85%B3%E7%BE%BD%E5%88%AE%E9%AA%A8%E7%96%97%E6%AF%92%E5%8F%A4%E8%AF%97%E8%AF%B5%E8%AF%BB.mp4", "type": "video" } }, { "id": 2397, "name": "第三十二课《奴隶英雄》", "has_quiz": 0, "sort": 4, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2397, "path": "http://ks3-cn-beijing.ksyun.com/learn/32%E5%A5%B4%E9%9A%B6%E8%8B%B1%E9%9B%84.mp4", "type": "video" } }, { "id": 2396, "name": "第三十一课《革命烈士诗二首》", "has_quiz": 0, "sort": 5, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2396, "path": "http://ks3-cn-beijing.ksyun.com/learn/31%E9%9D%A9%E5%91%BD%E7%83%88%E5%A3%AB%E8%AF%97%E4%BA%8C%E9%A6%96.mp4", "type": "video" } }, { "id": 2395, "name": "第三十课《语言大师》", "has_quiz": 0, "sort": 6, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2395, "path": "http://ks3-cn-beijing.ksyun.com/learn/30%E8%AF%AD%E8%A8%80%E5%A4%A7%E5%B8%88.mp4", "type": "video" } }, { "id": 2394, "name": "第二十九课《莫泊桑拜师》", "has_quiz": 0, "sort": 7, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2394, "path": "http://ks3-cn-beijing.ksyun.com/learn/29%E8%8E%AB%E6%B3%8A%E6%A1%91%E6%8B%9C%E5%B8%88.mp4", "type": "video" } }, { "id": 2393, "name": "古诗诵读两首", "has_quiz": 0, "sort": 8, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2393, "path": "http://ks3-cn-beijing.ksyun.com/learn/28%E5%94%AF%E4%B8%80%E7%9A%84%E5%90%AC%E4%BC%97%E5%8F%A4%E8%AF%97%E8%AF%B5%E8%AF%BB.mp4", "type": "video" } }, { "id": 2392, "name": "第二十八课《唯一的听众》", "has_quiz": 0, "sort": 9, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2392, "path": "http://ks3-cn-beijing.ksyun.com/learn/28%E5%94%AF%E4%B8%80%E7%9A%84%E5%90%AC%E4%BC%97.mp4", "type": "video" } }, { "id": 2391, "name": "第二十七课《鲍叔牙真心待友》", "has_quiz": 0, "sort": 10, "is_free": 0, "type": "video", "course_lesson_name": "", "material": { "lesson_id": 2391, "path": "http://ks3-cn-beijing.ksyun.com/learn/27%E9%B2%8D%E5%8F%94%E7%89%99%E7%9C%9F%E5%BF%83%E5%BE%85%E5%8F%8B.mp4", "type": "video" } } ], "message": "操作成功", "ct": 1538293224 }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">string</td> <td>课时名称</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">string</td> <td>课时类型,audio:音频,video:视频,空:其他</td> </tr> <tr> <td style="text-align: left;">materials['name']</td> <td style="text-align: left;">string</td> <td>课时素材名称</td> </tr> <tr> <td style="text-align: left;">materials['path']</td> <td style="text-align: left;">string</td> <td>课时素材路径</td> </tr> <tr> <td style="text-align: left;">materials['type']</td> <td style="text-align: left;">string</td> <td>课时素材类型,audio:音频,video:视频,空:其他</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML