Track 8 files into repository.
- untracked yjw接口文档/y分享.md - untracked yjw接口文档/y分享统计.md - untracked yjw接口文档/y口语测评.md - untracked yjw接口文档/y手机号接口.md - untracked yjw接口文档/y提交成绩.md - untracked yjw接口文档/y每日推送.md - untracked yjw接口文档/y阶段数.md - modified SUMMARY.md Auto commit by GitBook Editor
Showing
8 changed files
with
1207 additions
and
1 deletions
@@ -255,4 +255,10 @@ | @@ -255,4 +255,10 @@ | ||
255 | * [网络状态检测](未整理/网络状态检测.md) | 255 | * [网络状态检测](未整理/网络状态检测.md) |
256 | * [网页测试Demo数据](未整理/网页测试Demo数据.md) | 256 | * [网页测试Demo数据](未整理/网页测试Demo数据.md) |
257 | * [获取当前分类下存在的班级](未整理/获取当前分类下存在的班级.md) | 257 | * [获取当前分类下存在的班级](未整理/获取当前分类下存在的班级.md) |
258 | - | 258 | +* [分享](yjw接口文档/y分享.md) |
259 | +* [口语测评](yjw接口文档/y口语测评.md) | ||
260 | +* [手机号接口](yjw接口文档/y手机号接口.md) | ||
261 | +* [提交成绩](yjw接口文档/y提交成绩.md) | ||
262 | +* [每日推送](yjw接口文档/y每日推送.md) | ||
263 | +* [阶段数](yjw接口文档/y阶段数.md) | ||
264 | +* [文案组分享统计](yjw接口文档/y分享统计.md) |
yjw接口文档/y分享.md
0 → 100755
1 | +# 分享相关 | ||
2 | +``` | ||
3 | +### 1. 抽奖分享 | ||
4 | +api-online.test.boxfish.cn/share/acquire/award?access_token=admin | ||
5 | +POST | ||
6 | +x-www-form-urlencoded参数: | ||
7 | +award_code String 奖品码 | ||
8 | +image_name String 图片名字 | ||
9 | +title String 小标题 | ||
10 | +description String 副标题 | ||
11 | +返回: | ||
12 | +{ | ||
13 | + "gold": 173, | ||
14 | + "msg": "success", | ||
15 | + "onlineScore": 217, | ||
16 | + "url": "http://api-online.test.boxfish.cn/share/wechat/acquire/award/1/86995d7a-4916-4e25-9b9e-85bc38a49f21" | ||
17 | +} | ||
18 | + | ||
19 | +### 2. 抽奖页面 | ||
20 | +api-online.test.boxfish.cn/share/wechat/acquire/award/{user_id}/{display_code} | ||
21 | +GET | ||
22 | + | ||
23 | + | ||
24 | +### 3. 抽奖分享成功回调 | ||
25 | +/share/acquire/award/success | ||
26 | +POST | ||
27 | +说明: 对预存储的积分金币加到用户信息中 | ||
28 | + | ||
29 | +### 4. 通用分享接口 | ||
30 | +/share/for | ||
31 | +POST | ||
32 | +x-www-form-urlencoded参数: | ||
33 | +share_type String 分享类型 | ||
34 | +参数约定:分享类型都集成在一个枚举里面, | ||
35 | +public enum ShareType { | ||
36 | + ACHIEVEMENT, | ||
37 | + DAILY_ACHIEVEMENT, | ||
38 | + DAILY_GOAL_ACHIEVEMENT, | ||
39 | + DAILY_SCORE_RANK, | ||
40 | + TOTAL_SCORE_RANK, | ||
41 | + OPEN_QUESTION, | ||
42 | + AWARD, | ||
43 | + REWARD_LESSON, //扫一扫,二维码兑换课程 | ||
44 | + ONLINE_LESSON, //在线上课 | ||
45 | + BUY_FOREIGN_LESSON, //购买外教课 | ||
46 | + BUY_CHINESE_LESSON, //购买中教课 | ||
47 | + APPRAISE, //外教点评 | ||
48 | + TODAY_HEADLINE, | ||
49 | + ORAL_REPORT, //口语测评 | ||
50 | + BUY_SMALL_LESSON, | ||
51 | + SMALL_LESSON, | ||
52 | + PUB_LESSON, | ||
53 | + FINISH_STUDY //完成自主学习任务 | ||
54 | + | ||
55 | +} | ||
56 | +接口中的方法对应每一种分享类型的处理方式, | ||
57 | +##### 4.1 完成今日任务 FINISH_STUDY | ||
58 | +{ | ||
59 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
60 | + "imageName" : "award_logo.png", | ||
61 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。", | ||
62 | + "award_code":"hahaha", | ||
63 | + "lesson_list" : [ { | ||
64 | + "lesson_name" : "Module 1 Unit1_Words 1", | ||
65 | + "lesson_cover" : "https://api.boxfish.cn/student/publication/data/data/96dc1fd345b6d4eeee82c66c6e3e8ddb", | ||
66 | + "lesson_type" : "TEXTBOOK_WORDS" | ||
67 | + } ] | ||
68 | +} | ||
69 | + | ||
70 | +##### 4.2 购买小班课 BUY_SMALL_LESSON | ||
71 | +{ | ||
72 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
73 | + "imageName" : "award_logo.png", | ||
74 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。" | ||
75 | +} | ||
76 | + | ||
77 | +##### 4.3 完成小班课 SMALL_LESSON | ||
78 | +{ | ||
79 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
80 | + "imageName" : "award_logo.png", | ||
81 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。" | ||
82 | +} | ||
83 | + | ||
84 | + | ||
85 | +##### 4.4 完成公开课 PUB_LESSON | ||
86 | +{ | ||
87 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
88 | + "imageName" : "award_logo.png", | ||
89 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。" | ||
90 | +} | ||
91 | + | ||
92 | + | ||
93 | +##### 4.5 口语测评分享 ORAL_REPORT | ||
94 | +{ | ||
95 | + "report": "0.4", | ||
96 | + "lesson_id": "L3NoYXJlL3N2bi_kuIrmtbflj6Por63ogIPor5UxLzUwNC7kuIrmtbfluIIyMDE35Lit6ICD5Y-j6K-t57uD5LmgNC54bHN4", | ||
97 | + "dialogue": "0.2分\/10分", | ||
98 | + "review": "嘿,整体都可以做得更好呢。注意多练习发音、多交流,表达自己的观点也要具体些~一定要加油哦。", | ||
99 | + "title": "我参加了盒子鱼口语考试,超智能!不多说,我继续学习去了。", | ||
100 | + "composition": "0.0分\/5分", | ||
101 | + "intonation": "0.2分\/5分", | ||
102 | + "description": "我在学霸之路上越走越远,你不来比划比划?", | ||
103 | + "image_name": "award_logo.png" | ||
104 | +} | ||
105 | + | ||
106 | +##### 4.6 兑换课程分享 | ||
107 | +{ | ||
108 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
109 | + "imageName" : "award_logo.png", | ||
110 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。", | ||
111 | + "view" : "chinese" | ||
112 | +} | ||
113 | + | ||
114 | +##### 4.7 在线上课分享 | ||
115 | +{ | ||
116 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
117 | + "imageName" : "award_logo.png", | ||
118 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。", | ||
119 | + "lessonName" : "L3NoYXJlL3N2bi_mna3lt57lj6Por63ogIPor5UxLzExMS4g5p2t5beeMjAxN-S4reiAg-WPo-ivree7g-S5oDIueGxzeA" | ||
120 | +} | ||
121 | + | ||
122 | +##### 4.8 购买外教课 BUY_FOREIGN_LESSON | ||
123 | +{ | ||
124 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
125 | + "imageName" : "award_logo.png", | ||
126 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。" | ||
127 | +} | ||
128 | + | ||
129 | +##### 4.9 购买中教课 BUY_CHINESE_LESSON | ||
130 | +{ | ||
131 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
132 | + "imageName" : "award_logo.png", | ||
133 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。" | ||
134 | +} | ||
135 | + | ||
136 | +##### 4.10 外教点评 APPRAISE | ||
137 | +{ | ||
138 | + "title" : "BOXFiSH学员:学习全辅导,每天都上外教课!", | ||
139 | + "imageName" : "award_logo.png", | ||
140 | + "description" : "我在BOXFiSH学英语#学的不止是英语,更是全球视角下的独立思考。" | ||
141 | +} |
yjw接口文档/y分享统计.md
0 → 100755
yjw接口文档/y口语测评.md
0 → 100755
1 | +# 口语测评 | ||
2 | +``` | ||
3 | +### 1. 口语测评完成度 | ||
4 | +api-online.test.boxfish.cn/report/group/{group}}/lesson/{lesson}?access_token=admin | ||
5 | +GET | ||
6 | +访问示例: | ||
7 | +api-online.test.boxfish.cn/report/group/9469/lesson/L3NoYXJlL3N2bi9Ub3BpY1_kuKrkurrmg4XlhrUvMDAzLuWmguS9leaIkOS4uuabtOWlveeahOiHquW3se-8ny54bHN4?access_token=admin | ||
8 | +返回: | ||
9 | + | ||
10 | +{ | ||
11 | + "听力测验": [ | ||
12 | + { | ||
13 | + "user_id": 7007, | ||
14 | + "user_name": "Huan", | ||
15 | + "score": 0 | ||
16 | + } | ||
17 | + ], | ||
18 | + "type": [ | ||
19 | + "听力测验" | ||
20 | + ], | ||
21 | + "percentage": "0.17" | ||
22 | +} | ||
23 | + | ||
24 | +说明:此接口增加了percentage字段,表示班级中已经完成的人数比率 | ||
25 | + | ||
26 | +### 2. 口语测评成绩提交 | ||
27 | +api-online.test.boxfish.cn/commit/record/batch?access_token=admin | ||
28 | +POST | ||
29 | +body参数: | ||
30 | +{ | ||
31 | + "cr_list": [{ | ||
32 | + "credit": 1102, | ||
33 | + "fact_score": 1.713699913024902, | ||
34 | + "quiz_id": "oo-11", | ||
35 | + "score": 5, | ||
36 | + "equal": 0.3427399826049805, | ||
37 | + "gold": 0, | ||
38 | + "quiz_type": "ORAL_INTONATION", | ||
39 | + "duration": 46.48099899291992, | ||
40 | + "audio_url": "http:\/\/edu.hivoice.cn:80\/WebAudio-1.0-SNAPSHOT\/audio\/play\/D923E81D-5D41-402F-9A9C-C471AD18B461\/1483583474648405519\/gz", | ||
41 | + "finished_time": 1483583852, | ||
42 | + "channel": "ORAL_TEST" | ||
43 | + }, { | ||
44 | + "credit": 107, | ||
45 | + "fact_score": 0.6627500152587891, | ||
46 | + "quiz_id": "oo-21", | ||
47 | + "score": 1, | ||
48 | + "equal": 0.6627500152587891, | ||
49 | + "gold": 0, | ||
50 | + "quiz_type": "ORAL_DIALOGUE", | ||
51 | + "duration": 15.46100044250488, | ||
52 | + "audio_url": "http:\/\/edu.hivoice.cn:80\/WebAudio-1.0-SNAPSHOT\/audio\/play\/80B813C9-E2CC-4CF7-AF3C-540A876AED20\/1483583541114792703\/gz", | ||
53 | + "finished_time": 1483583852, | ||
54 | + "channel": "ORAL_TEST" | ||
55 | + }, { | ||
56 | + "credit": 307, | ||
57 | + "fact_score": 0.6970199775695801, | ||
58 | + "quiz_id": "oo-31", | ||
59 | + "score": 6, | ||
60 | + "equal": 0.1161699962615967, | ||
61 | + "gold": 0, | ||
62 | + "quiz_type": "ORAL_COMPOSITION", | ||
63 | + "duration": 10.84099960327148, | ||
64 | + "audio_url": "http:\/\/edu.hivoice.cn:80\/WebAudio-1.0-SNAPSHOT\/audio\/play\/E2B6BDE1-D890-4EA8-AF4A-7D1A819DDFA8\/1483583830243491916\/gz", | ||
65 | + "finished_time": 1483583852, | ||
66 | + "channel": "ORAL_TEST" | ||
67 | + }], | ||
68 | + "user_id": "1", | ||
69 | + "lesson_id": "L3NoYXJlL3N2bi_ljJfkuqzlj6Por63ogIPor5UxLzEwMi7ljJfkuqzliJ3kuIDlj6Por63nu4PkuaDpopgyLnhsc3gyjw211" | ||
70 | +} | ||
71 | + | ||
72 | +返回参数: | ||
73 | + | ||
74 | +{ | ||
75 | + "record_score": 70462, | ||
76 | + "gold": 4876, | ||
77 | + "msg": "success" | ||
78 | +} | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + |
yjw接口文档/y手机号接口.md
0 → 100755
1 | +# 手机号相关 | ||
2 | +``` | ||
3 | +#### 1. 绑定手机号 | ||
4 | +api-online.test.boxfish.cn/mobile/send?access_token=admin&mobile=17051100900 | ||
5 | +POST | ||
6 | +返回参数: | ||
7 | +{ | ||
8 | + "success": true | ||
9 | +} | ||
10 | +异常参数: | ||
11 | +throw ['手机格式不正确'] | ||
12 | +throw ['该手机号已经被绑定,请确认是否绑定过其他帐号哟~'] | ||
13 | +throw ['验证码发送过频,请稍后再试'] | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | +#### 2. 检验验证码 | ||
18 | +api-online.test.boxfish.cn/mobile/check?access_token=admin&mobile=17051100900&code=2128 | ||
19 | +GET/POST | ||
20 | +返回参数: | ||
21 | +{ | ||
22 | + "status": "valid" | ||
23 | +} | ||
24 | + | ||
25 | + | ||
26 | +#### 3. 更改手机号 | ||
27 | +api-online.test.boxfish.cn/user/mobile?access_token=admin&mobile=17051100900&code=3257 | ||
28 | +POST | ||
29 | +返回参数: | ||
30 | +{ | ||
31 | + "success": true | ||
32 | +} | ||
33 | +异常参数: | ||
34 | +throw ['手机格式不正确'] | ||
35 | +throw ['手机号码已被绑定'] | ||
36 | +throw ['验证码不正确'] | ||
37 | + | ||
38 | +#### 4. 删除此用户手机绑定 | ||
39 | +api-online.test.boxfish.cn/user/mobile?access_token=admin&mobile=17051100900&code=3257 | ||
40 | +DELETE | ||
41 | +返回参数:无 | ||
42 | + | ||
43 | +#### 5. 删除此手机号绑定 | ||
44 | +api-online.test.boxfish.cn/user/mobile/{mobileId}}?access_token=admin | ||
45 | +示例: | ||
46 | +api-online.test.boxfish.cn/user/mobile/17051100900?access_token=admin | ||
47 | +返回参数:无 |
yjw接口文档/y提交成绩.md
0 → 100755
1 | +# 提交成绩 | ||
2 | +``` | ||
3 | +### 1. 公开课成绩提交限制次数 | ||
4 | +api-online.test.boxfish.cn/statistic/user/score/{userId}}?access_token=admin | ||
5 | +POST | ||
6 | +示例:api-online.test.boxfish.cn/statistic/user/score/1?access_token=admin | ||
7 | +返回参数: | ||
8 | +{ | ||
9 | + "theScore": 300, | ||
10 | + "sumScore": 36636.40017700195 | ||
11 | +} | ||
12 | + | ||
13 | + | ||
14 | +### 2. 自主学习提交成绩 | ||
15 | +api-online.test.boxfish.cn/event/statistic/article/progress?access_token=UC77eM0pZ7 | ||
16 | +POST | ||
17 | +body参数: | ||
18 | + { | ||
19 | + "goal": { | ||
20 | + "toefl": [ | ||
21 | + 0, | ||
22 | + 0, | ||
23 | + 0, | ||
24 | + 0, | ||
25 | + 0, | ||
26 | + 0, | ||
27 | + 0, | ||
28 | + 0, | ||
29 | + 0, | ||
30 | + 0 | ||
31 | + ], | ||
32 | + "primary": [ | ||
33 | + 0, | ||
34 | + 0, | ||
35 | + 0, | ||
36 | + 0, | ||
37 | + 0, | ||
38 | + 0, | ||
39 | + 0, | ||
40 | + 0, | ||
41 | + 0, | ||
42 | + 0 | ||
43 | + ], | ||
44 | + "seniorHigh": [ | ||
45 | + 0, | ||
46 | + 0, | ||
47 | + 0, | ||
48 | + 0, | ||
49 | + 0, | ||
50 | + 0, | ||
51 | + 0, | ||
52 | + 0, | ||
53 | + 0, | ||
54 | + 0 | ||
55 | + ], | ||
56 | + "total": [ | ||
57 | + 0, | ||
58 | + 0, | ||
59 | + 0, | ||
60 | + 0, | ||
61 | + 0, | ||
62 | + 0, | ||
63 | + 0, | ||
64 | + 0, | ||
65 | + 0, | ||
66 | + 0 | ||
67 | + ], | ||
68 | + "juniorHigh": [ | ||
69 | + 0, | ||
70 | + 0, | ||
71 | + 0, | ||
72 | + 0, | ||
73 | + 0, | ||
74 | + 0, | ||
75 | + 0, | ||
76 | + 0, | ||
77 | + 0, | ||
78 | + 0 | ||
79 | + ] | ||
80 | + }, | ||
81 | + "record": [ | ||
82 | + { | ||
83 | + "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g", | ||
84 | + "score": 14, | ||
85 | + "userId": 1299909, | ||
86 | + "equal": 1, | ||
87 | + "count": 3, | ||
88 | + "original": "in the morning", | ||
89 | + "duration": 1.686477, | ||
90 | + "transcription": "In the morning.", | ||
91 | + "createTime": 1490757225568 | ||
92 | + }, | ||
93 | + { | ||
94 | + "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g", | ||
95 | + "score": 0, | ||
96 | + "userId": 1299909, | ||
97 | + "equal": 0, | ||
98 | + "count": 0, | ||
99 | + "original": "in the afternoon", | ||
100 | + "duration": 3.917294, | ||
101 | + "transcription": "", | ||
102 | + "createTime": 1490757241313 | ||
103 | + }, | ||
104 | + { | ||
105 | + "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g", | ||
106 | + "score": 0, | ||
107 | + "userId": 1299909, | ||
108 | + "equal": 0, | ||
109 | + "count": 0, | ||
110 | + "original": "in the afternoon", | ||
111 | + "duration": 1.167468, | ||
112 | + "transcription": "", | ||
113 | + "createTime": 1490757247501 | ||
114 | + }, | ||
115 | + { | ||
116 | + "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g", | ||
117 | + "score": 28, | ||
118 | + "userId": 1299909, | ||
119 | + "equal": 0.833333, | ||
120 | + "count": 3, | ||
121 | + "original": "Good morning, Kate!", | ||
122 | + "duration": 2.93153, | ||
123 | + "transcription": "Good morning kids.", | ||
124 | + "createTime": 1490757257610 | ||
125 | + }, | ||
126 | + { | ||
127 | + "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g", | ||
128 | + "score": 24, | ||
129 | + "userId": 1299909, | ||
130 | + "equal": 1, | ||
131 | + "count": 2, | ||
132 | + "original": "Good morning!", | ||
133 | + "duration": 2.175412, | ||
134 | + "transcription": "Good morning.", | ||
135 | + "createTime": 1490757267263 | ||
136 | + }, | ||
137 | + { | ||
138 | + "lesson": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g", | ||
139 | + "score": 0, | ||
140 | + "userId": 1299909, | ||
141 | + "equal": 0, | ||
142 | + "count": 0, | ||
143 | + "original": "Good afternoon, afternoon, afternoon.", | ||
144 | + "duration": 0.585477, | ||
145 | + "transcription": "", | ||
146 | + "createTime": 1490757281740 | ||
147 | + } | ||
148 | + ], | ||
149 | + "read": [ | ||
150 | + { | ||
151 | + "wordCount": 3, | ||
152 | + "count": 1, | ||
153 | + "userId": 1299909, | ||
154 | + "level": 1, | ||
155 | + "md5": "C9351E2E6FF6E9982DDB6E31D5426B9A" | ||
156 | + }, | ||
157 | + { | ||
158 | + "wordCount": 2, | ||
159 | + "count": 1, | ||
160 | + "userId": 1299909, | ||
161 | + "level": 1, | ||
162 | + "md5": "D56BF970B2BD8C25AB544C337531C117" | ||
163 | + } | ||
164 | + ], | ||
165 | + "multiwordList": [ | ||
166 | + { | ||
167 | + "count": 2, | ||
168 | + "multiword": "the,the,other,UD" | ||
169 | + }, | ||
170 | + { | ||
171 | + "count": 2, | ||
172 | + "multiword": "in,in,prep,UD" | ||
173 | + }, | ||
174 | + { | ||
175 | + "count": 4, | ||
176 | + "multiword": "morning,morning,n,NN" | ||
177 | + }, | ||
178 | + { | ||
179 | + "count": 5, | ||
180 | + "multiword": "afternoon,afternoon,n,NN" | ||
181 | + }, | ||
182 | + { | ||
183 | + "count": 6, | ||
184 | + "multiword": "good,good,adj,JJ" | ||
185 | + }, | ||
186 | + { | ||
187 | + "count": 1, | ||
188 | + "multiword": "kate,kate,n,NN" | ||
189 | + }, | ||
190 | + { | ||
191 | + "count": 1, | ||
192 | + "multiword": "and,and,conj,UD" | ||
193 | + }, | ||
194 | + { | ||
195 | + "count": 1, | ||
196 | + "multiword": "now,now,adv,RB" | ||
197 | + }, | ||
198 | + { | ||
199 | + "count": 1, | ||
200 | + "multiword": "mom,mom,n,NN" | ||
201 | + }, | ||
202 | + { | ||
203 | + "count": 1, | ||
204 | + "multiword": "you,you,pron,UD" | ||
205 | + }, | ||
206 | + { | ||
207 | + "count": 1, | ||
208 | + "multiword": "dad,dad,n,NN" | ||
209 | + }, | ||
210 | + { | ||
211 | + "count": 1, | ||
212 | + "multiword": "or,or,conj,UD" | ||
213 | + }, | ||
214 | + { | ||
215 | + "count": 1, | ||
216 | + "multiword": "right,right,adv,RB" | ||
217 | + }, | ||
218 | + { | ||
219 | + "count": 1, | ||
220 | + "multiword": "say,say,v,VB" | ||
221 | + }, | ||
222 | + { | ||
223 | + "count": 1, | ||
224 | + "multiword": "to,to,other,UD" | ||
225 | + }, | ||
226 | + { | ||
227 | + "count": 1, | ||
228 | + "multiword": "your,you,pron,UD" | ||
229 | + }, | ||
230 | + { | ||
231 | + "count": 1, | ||
232 | + "multiword": "should,should,v,UD" | ||
233 | + }, | ||
234 | + { | ||
235 | + "count": 1, | ||
236 | + "multiword": "evening,evening,n,NN" | ||
237 | + }, | ||
238 | + { | ||
239 | + "count": 1, | ||
240 | + "multiword": "what,what,pron,UD" | ||
241 | + } | ||
242 | + ], | ||
243 | + "newWord": "19", | ||
244 | + "userId": 1299909, | ||
245 | + "words": [ | ||
246 | + { | ||
247 | + "template": 1, | ||
248 | + "summary": { | ||
249 | + "other": [ | ||
250 | + 0, | ||
251 | + 0, | ||
252 | + 0, | ||
253 | + 0, | ||
254 | + 0, | ||
255 | + 0, | ||
256 | + 0, | ||
257 | + 0, | ||
258 | + 0, | ||
259 | + 0 | ||
260 | + ], | ||
261 | + "primary": [ | ||
262 | + 0, | ||
263 | + 0, | ||
264 | + 0, | ||
265 | + 0, | ||
266 | + 0, | ||
267 | + 0, | ||
268 | + 0, | ||
269 | + 0, | ||
270 | + 0, | ||
271 | + 0 | ||
272 | + ], | ||
273 | + "seniorHigh": [ | ||
274 | + 0, | ||
275 | + 0, | ||
276 | + 0, | ||
277 | + 0, | ||
278 | + 0, | ||
279 | + 0, | ||
280 | + 0, | ||
281 | + 0, | ||
282 | + 0, | ||
283 | + 0 | ||
284 | + ], | ||
285 | + "juniorHigh": [ | ||
286 | + 0, | ||
287 | + 0, | ||
288 | + 0, | ||
289 | + 0, | ||
290 | + 0, | ||
291 | + 0, | ||
292 | + 0, | ||
293 | + 0, | ||
294 | + 0, | ||
295 | + 0 | ||
296 | + ], | ||
297 | + "toefl": [ | ||
298 | + 0, | ||
299 | + 0, | ||
300 | + 0, | ||
301 | + 0, | ||
302 | + 0, | ||
303 | + 0, | ||
304 | + 0, | ||
305 | + 0, | ||
306 | + 0, | ||
307 | + 0 | ||
308 | + ] | ||
309 | + } | ||
310 | + }, | ||
311 | + { | ||
312 | + "template": 3, | ||
313 | + "summary": { | ||
314 | + "other": [ | ||
315 | + 0, | ||
316 | + 0, | ||
317 | + 0, | ||
318 | + 0, | ||
319 | + 0, | ||
320 | + 0, | ||
321 | + 0, | ||
322 | + 0, | ||
323 | + 0, | ||
324 | + 0 | ||
325 | + ], | ||
326 | + "primary": [ | ||
327 | + 0, | ||
328 | + 0, | ||
329 | + 0, | ||
330 | + 0, | ||
331 | + 0, | ||
332 | + 0, | ||
333 | + 0, | ||
334 | + 0, | ||
335 | + 0, | ||
336 | + 0 | ||
337 | + ], | ||
338 | + "seniorHigh": [ | ||
339 | + 0, | ||
340 | + 0, | ||
341 | + 0, | ||
342 | + 0, | ||
343 | + 0, | ||
344 | + 0, | ||
345 | + 0, | ||
346 | + 0, | ||
347 | + 0, | ||
348 | + 0 | ||
349 | + ], | ||
350 | + "juniorHigh": [ | ||
351 | + 0, | ||
352 | + 0, | ||
353 | + 0, | ||
354 | + 0, | ||
355 | + 0, | ||
356 | + 0, | ||
357 | + 0, | ||
358 | + 0, | ||
359 | + 0, | ||
360 | + 0 | ||
361 | + ], | ||
362 | + "toefl": [ | ||
363 | + 0, | ||
364 | + 0, | ||
365 | + 0, | ||
366 | + 0, | ||
367 | + 0, | ||
368 | + 0, | ||
369 | + 0, | ||
370 | + 0, | ||
371 | + 0, | ||
372 | + 0 | ||
373 | + ] | ||
374 | + } | ||
375 | + }, | ||
376 | + { | ||
377 | + "template": 6, | ||
378 | + "summary": { | ||
379 | + "other": [ | ||
380 | + 0, | ||
381 | + 0, | ||
382 | + 0, | ||
383 | + 0, | ||
384 | + 0, | ||
385 | + 0, | ||
386 | + 0, | ||
387 | + 0, | ||
388 | + 0, | ||
389 | + 0 | ||
390 | + ], | ||
391 | + "primary": [ | ||
392 | + 0, | ||
393 | + 0, | ||
394 | + 0, | ||
395 | + 0, | ||
396 | + 0, | ||
397 | + 0, | ||
398 | + 0, | ||
399 | + 0, | ||
400 | + 0, | ||
401 | + 0 | ||
402 | + ], | ||
403 | + "seniorHigh": [ | ||
404 | + 0, | ||
405 | + 0, | ||
406 | + 0, | ||
407 | + 0, | ||
408 | + 0, | ||
409 | + 0, | ||
410 | + 0, | ||
411 | + 0, | ||
412 | + 0, | ||
413 | + 0 | ||
414 | + ], | ||
415 | + "juniorHigh": [ | ||
416 | + 0, | ||
417 | + 0, | ||
418 | + 0, | ||
419 | + 0, | ||
420 | + 0, | ||
421 | + 0, | ||
422 | + 0, | ||
423 | + 0, | ||
424 | + 0, | ||
425 | + 0 | ||
426 | + ], | ||
427 | + "toefl": [ | ||
428 | + 0, | ||
429 | + 0, | ||
430 | + 0, | ||
431 | + 0, | ||
432 | + 0, | ||
433 | + 0, | ||
434 | + 0, | ||
435 | + 0, | ||
436 | + 0, | ||
437 | + 0 | ||
438 | + ] | ||
439 | + } | ||
440 | + }, | ||
441 | + { | ||
442 | + "template": 500, | ||
443 | + "summary": { | ||
444 | + "other": [ | ||
445 | + 0, | ||
446 | + 0, | ||
447 | + 0, | ||
448 | + 0, | ||
449 | + 0, | ||
450 | + 0, | ||
451 | + 0, | ||
452 | + 0, | ||
453 | + 0, | ||
454 | + 0 | ||
455 | + ], | ||
456 | + "primary": [ | ||
457 | + 2, | ||
458 | + 2, | ||
459 | + 0, | ||
460 | + 0, | ||
461 | + 0, | ||
462 | + 0, | ||
463 | + 0, | ||
464 | + 0, | ||
465 | + 0, | ||
466 | + 0 | ||
467 | + ], | ||
468 | + "seniorHigh": [ | ||
469 | + 0, | ||
470 | + 0, | ||
471 | + 0, | ||
472 | + 0, | ||
473 | + 0, | ||
474 | + 0, | ||
475 | + 0, | ||
476 | + 0, | ||
477 | + 0, | ||
478 | + 0 | ||
479 | + ], | ||
480 | + "juniorHigh": [ | ||
481 | + 0, | ||
482 | + 0, | ||
483 | + 0, | ||
484 | + 0, | ||
485 | + 0, | ||
486 | + 0, | ||
487 | + 0, | ||
488 | + 0, | ||
489 | + 0, | ||
490 | + 0 | ||
491 | + ], | ||
492 | + "toefl": [ | ||
493 | + 0, | ||
494 | + 0, | ||
495 | + 0, | ||
496 | + 0, | ||
497 | + 0, | ||
498 | + 0, | ||
499 | + 0, | ||
500 | + 0, | ||
501 | + 0, | ||
502 | + 0 | ||
503 | + ] | ||
504 | + } | ||
505 | + }, | ||
506 | + { | ||
507 | + "template": 501, | ||
508 | + "summary": { | ||
509 | + "other": [ | ||
510 | + 0, | ||
511 | + 0, | ||
512 | + 0, | ||
513 | + 0, | ||
514 | + 0, | ||
515 | + 0, | ||
516 | + 0, | ||
517 | + 0, | ||
518 | + 0, | ||
519 | + 0 | ||
520 | + ], | ||
521 | + "primary": [ | ||
522 | + 0, | ||
523 | + 0, | ||
524 | + 0, | ||
525 | + 0, | ||
526 | + 0, | ||
527 | + 0, | ||
528 | + 0, | ||
529 | + 0, | ||
530 | + 0, | ||
531 | + 0 | ||
532 | + ], | ||
533 | + "seniorHigh": [ | ||
534 | + 0, | ||
535 | + 0, | ||
536 | + 0, | ||
537 | + 0, | ||
538 | + 0, | ||
539 | + 0, | ||
540 | + 0, | ||
541 | + 0, | ||
542 | + 0, | ||
543 | + 0 | ||
544 | + ], | ||
545 | + "juniorHigh": [ | ||
546 | + 0, | ||
547 | + 0, | ||
548 | + 0, | ||
549 | + 0, | ||
550 | + 0, | ||
551 | + 0, | ||
552 | + 0, | ||
553 | + 0, | ||
554 | + 0, | ||
555 | + 0 | ||
556 | + ], | ||
557 | + "toefl": [ | ||
558 | + 0, | ||
559 | + 0, | ||
560 | + 0, | ||
561 | + 0, | ||
562 | + 0, | ||
563 | + 0, | ||
564 | + 0, | ||
565 | + 0, | ||
566 | + 0, | ||
567 | + 0 | ||
568 | + ] | ||
569 | + } | ||
570 | + }, | ||
571 | + { | ||
572 | + "template": 502, | ||
573 | + "summary": { | ||
574 | + "other": [ | ||
575 | + 0, | ||
576 | + 0, | ||
577 | + 0, | ||
578 | + 0, | ||
579 | + 0, | ||
580 | + 0, | ||
581 | + 0, | ||
582 | + 0, | ||
583 | + 0, | ||
584 | + 0 | ||
585 | + ], | ||
586 | + "primary": [ | ||
587 | + 0, | ||
588 | + 0, | ||
589 | + 0, | ||
590 | + 0, | ||
591 | + 0, | ||
592 | + 0, | ||
593 | + 0, | ||
594 | + 0, | ||
595 | + 0, | ||
596 | + 0 | ||
597 | + ], | ||
598 | + "seniorHigh": [ | ||
599 | + 0, | ||
600 | + 0, | ||
601 | + 0, | ||
602 | + 0, | ||
603 | + 0, | ||
604 | + 0, | ||
605 | + 0, | ||
606 | + 0, | ||
607 | + 0, | ||
608 | + 0 | ||
609 | + ], | ||
610 | + "juniorHigh": [ | ||
611 | + 0, | ||
612 | + 0, | ||
613 | + 0, | ||
614 | + 0, | ||
615 | + 0, | ||
616 | + 0, | ||
617 | + 0, | ||
618 | + 0, | ||
619 | + 0, | ||
620 | + 0 | ||
621 | + ], | ||
622 | + "toefl": [ | ||
623 | + 0, | ||
624 | + 0, | ||
625 | + 0, | ||
626 | + 0, | ||
627 | + 0, | ||
628 | + 0, | ||
629 | + 0, | ||
630 | + 0, | ||
631 | + 0, | ||
632 | + 0 | ||
633 | + ] | ||
634 | + } | ||
635 | + }, | ||
636 | + { | ||
637 | + "template": 503, | ||
638 | + "summary": { | ||
639 | + "other": [ | ||
640 | + 0, | ||
641 | + 0, | ||
642 | + 0, | ||
643 | + 0, | ||
644 | + 0, | ||
645 | + 0, | ||
646 | + 0, | ||
647 | + 0, | ||
648 | + 0, | ||
649 | + 0 | ||
650 | + ], | ||
651 | + "primary": [ | ||
652 | + 0, | ||
653 | + 0, | ||
654 | + 0, | ||
655 | + 0, | ||
656 | + 0, | ||
657 | + 0, | ||
658 | + 0, | ||
659 | + 0, | ||
660 | + 0, | ||
661 | + 0 | ||
662 | + ], | ||
663 | + "seniorHigh": [ | ||
664 | + 0, | ||
665 | + 0, | ||
666 | + 0, | ||
667 | + 0, | ||
668 | + 0, | ||
669 | + 0, | ||
670 | + 0, | ||
671 | + 0, | ||
672 | + 0, | ||
673 | + 0 | ||
674 | + ], | ||
675 | + "juniorHigh": [ | ||
676 | + 0, | ||
677 | + 0, | ||
678 | + 0, | ||
679 | + 0, | ||
680 | + 0, | ||
681 | + 0, | ||
682 | + 0, | ||
683 | + 0, | ||
684 | + 0, | ||
685 | + 0 | ||
686 | + ], | ||
687 | + "toefl": [ | ||
688 | + 0, | ||
689 | + 0, | ||
690 | + 0, | ||
691 | + 0, | ||
692 | + 0, | ||
693 | + 0, | ||
694 | + 0, | ||
695 | + 0, | ||
696 | + 0, | ||
697 | + 0 | ||
698 | + ] | ||
699 | + } | ||
700 | + } | ||
701 | + ], | ||
702 | + "wordCount": 19, | ||
703 | + "listening": [], | ||
704 | + "lessonId": "L3NoYXJlL3N2bi9MZXZlbCAyX0Z1bmN0aW9uMS8wMDEu5aaC5L2V6KGo6L6-4oCc5pep5LiK5aW94oCd77yfLnhsc3g", | ||
705 | + "phrase": { | ||
706 | + "phraseListeningDuration": 36.97965532879818, | ||
707 | + "phraseListening": [ | ||
708 | + { | ||
709 | + "learningCount": 1, | ||
710 | + "listeningCount": 1 | ||
711 | + }, | ||
712 | + { | ||
713 | + "learningCount": 1, | ||
714 | + "listeningCount": 1 | ||
715 | + } | ||
716 | + ], | ||
717 | + "phraseLearning": [ | ||
718 | + 2, | ||
719 | + 0, | ||
720 | + 0, | ||
721 | + 0, | ||
722 | + 0, | ||
723 | + 0, | ||
724 | + 0, | ||
725 | + 0, | ||
726 | + 0, | ||
727 | + 0 | ||
728 | + ] | ||
729 | + }, | ||
730 | + "cr_list": [ | ||
731 | + { | ||
732 | + "credit": 18, | ||
733 | + "fact_score": 16.73800086975098, | ||
734 | + "quiz_id": "RHBAZSH001", | ||
735 | + "score": 100, | ||
736 | + "equal": 0.1674000024795532, | ||
737 | + "gold": 9, | ||
738 | + "quiz_type": "ORAL_QUESTION", | ||
739 | + "duration": 3.801000118255615, | ||
740 | + "audio_url": "http://edu.hivoice.cn:80/WebAudio-1.0-SNAPSHOT/audio/play/76738EAB-4CA5-432C-B581-C50C7B0FF123/1490757289661660814/bj", | ||
741 | + "finished_time": 1490757344, | ||
742 | + "channel": "IN_QUESTION" | ||
743 | + } | ||
744 | + ] | ||
745 | +} | ||
746 | +返回参数: | ||
747 | +{ | ||
748 | + "score": 55335, | ||
749 | + "theScore": 88, | ||
750 | + "learning": { | ||
751 | + "wordCount": 19, | ||
752 | + "readWordCount": 5, | ||
753 | + "recordScore": 84, | ||
754 | + "listeningDuration": 36, | ||
755 | + "multiwordNum": 0, | ||
756 | + "progressTodayStart": "1.756", | ||
757 | + "progressTodayNow": "1.756", | ||
758 | + "todayScore": 88 | ||
759 | + }, | ||
760 | + "stageLevelOld": 2, | ||
761 | + "stageOld": 1, | ||
762 | + "stageLevelNow": 2, | ||
763 | + "stageNow": 1, | ||
764 | + "progressOld": "1.756", | ||
765 | + "progressNow": "1.756" | ||
766 | +} | ||
767 | + | ||
768 | + | ||
769 | +### 3. 在线上课提交成绩 | ||
770 | +api-online.test.boxfish.cn/event/statistic/online/progress?access_token=admin | ||
771 | +POST | ||
772 | +x-www-form-urlencoded参数: | ||
773 | +lesson_id=L3NoYXJlL3N2bi_kurrmlZnlhavlubTnuqfkuIsgVW5pdDYvMDAyLTEu5ZCM5q2l5ZCs5Yqb77yaQW4gb2xkIG1hbiB0cmllZCB0byBtb3ZlIHRoZSBtb3VudGFpbnMuIDEueGxzeA | ||
774 | +message=message | ||
775 | +level=4 | ||
776 | +class_type=SMALL | ||
777 | +参数约定: | ||
778 | +``` | ||
779 | +//1v1中教课 | ||
780 | +ONLINE_CHINESE, | ||
781 | +//1v1外交课 | ||
782 | +ONLINE_FOREIGN, | ||
783 | +//小班课外教4人 | ||
784 | +SMALL_FOREIGN_4 | ||
785 | +``` | ||
786 | +返回: | ||
787 | +{ | ||
788 | + "stageLevelOld": 1, | ||
789 | + "stageOld": 1, | ||
790 | + "stageLevelNow": 1, | ||
791 | + "stageNow": 1, | ||
792 | + "currentProgress": "1.719", | ||
793 | + "userMultiwordCount": 219, | ||
794 | + "recordScore": 68946, | ||
795 | + "theScore": 978, | ||
796 | + "sumScore": 374016.00000429153 | ||
797 | +} |
yjw接口文档/y每日推送.md
0 → 100755
1 | +# 每日推送 | ||
2 | +``` | ||
3 | +### 1. 文案组生成页面工具接口 | ||
4 | + | ||
5 | +api-online.test.boxfish.cn/share/wechat/inner/recommendation 不需要token | ||
6 | +POST | ||
7 | +BODY参数: | ||
8 | +{ | ||
9 | + "title": "一条大河实在是真特么宽哈", | ||
10 | + "description": "alskdjfalks00\n00asldfkaja", | ||
11 | + "picUrl": "http://assets.boxfish.cn/images/award/box_open.png", | ||
12 | + "videoUrl": "http://assets.boxfish.cn/v/%E6%9E%97%E4%B9%A6%E82%B1%AA%E6%95%99%E5%AD1%A6v4.mp4", | ||
13 | + "uploadAt": "2017/03/29", | ||
14 | + "recLevel": "3" | ||
15 | +} | ||
16 | + | ||
17 | +### 2. 客户端获取今日推送视频接口 | ||
18 | +访问例子: | ||
19 | +api-online.test.boxfish.cn/recommendation/today?access_token=admin&preference_level=7 | ||
20 | +访问方式:GET | ||
21 | +访问参数: | ||
22 | +preference_level int类型 即:用户偏好设置 | ||
23 | +返回例子: | ||
24 | +{ | ||
25 | + "upload_at": "2017-03-28", | ||
26 | + "title": "test33", | ||
27 | + "video_url": "http://assets.boxfish.cn/daily-video/test.mp4", | ||
28 | + "description": "test33", | ||
29 | + "url": "http://api-online.test.boxfish.cn/share/wechat/access/38da3a2a26b53822b24b6bdca95e92de", | ||
30 | + "pic_url": "http://assets.boxfish.cn/daily-video/video-cover/test.jpg" | ||
31 | +} | ||
32 | + | ||
33 | +### 3. 观看视频增加听力时长 | ||
34 | +api-online.test.boxfish.cn/finish/recommendation?access_token=admin&listening_time=8 | ||
35 | +POST | ||
36 | +参数:listening_time 听力时长,单位秒,Long型 | ||
37 | +返回: | ||
38 | +{ | ||
39 | + "msg": "success" | ||
40 | +} |
yjw接口文档/y阶段数.md
0 → 100755
1 | +# 阶段数 | ||
2 | +``` | ||
3 | +### 1. 首页查询阶段数信息 | ||
4 | + | ||
5 | +api-online.test.boxfish.cn/event/statistic/stage/info?access_token=admin | ||
6 | +GET | ||
7 | +返回: | ||
8 | +{ | ||
9 | + "stage_level": 1, | ||
10 | + "stage": 1, | ||
11 | + "progress": "0.00", | ||
12 | + "record_score": 0, | ||
13 | + "listening_duration": 8, | ||
14 | + "multiword_count": 0 | ||
15 | +} | ||
16 | + | ||
17 | +### 2. 阶段数对学习量预测接口 | ||
18 | +api-online.test.boxfish.cn/stage/multiword/info?access_token=admin | ||
19 | +GET | ||
20 | +返回: | ||
21 | +{ | ||
22 | + "increment": { | ||
23 | + "multi_word_increase": 748, | ||
24 | + "word_increase": 706, | ||
25 | + "reading_amount_increase": 569, | ||
26 | + "listening_time_increase": 8238, | ||
27 | + "record_time_increase": 9968, | ||
28 | + "phrase_increase": 501 | ||
29 | + }, | ||
30 | + "weeks": "预计1周完成", | ||
31 | + "level": 1, | ||
32 | + "stage": 1 | ||
33 | +} | ||
34 | + | ||
35 | +### 3. 首页学习情况显示总量接口 | ||
36 | +api-online.test.boxfish.cn/event/statistic/learning/today/progress?access_token=admin | ||
37 | +GET | ||
38 | +返回: | ||
39 | +{ | ||
40 | + "wordCount": 0, | ||
41 | + "readWordCount": 0, | ||
42 | + "recordScore": 0, | ||
43 | + "listeningDuration": 8, | ||
44 | + "multiwordNum": 0, | ||
45 | + "progressTodayStart": "1.719", | ||
46 | + "progressTodayNow": "1.719", | ||
47 | + "todayScore": 0, | ||
48 | + "stageLevel": 1, | ||
49 | + "stage": 1 | ||
50 | +} | ||
51 | + | ||
52 | +### 4. 设置学习偏好 | ||
53 | +api-online.test.boxfish.cn/preference/setting?access_token=admin | ||
54 | +POST | ||
55 | +x-www-form-urlencoded参数: | ||
56 | +grade="六年级" | ||
57 | +publication=“PEP版六年级上” | ||
58 | +level=1 | ||
59 | +plan=ONE_HOUR | ||
60 | +备注:plan约定(HALF_HOUR , ONE_HOUR , TWO_HOUR) | ||
61 | +返回: | ||
62 | +{ | ||
63 | + "goal": { | ||
64 | + "id": 1, | ||
65 | + "current_step": 3218, | ||
66 | + "goal_step": 55000 | ||
67 | + } | ||
68 | +} | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | +### 5. 设置课程学习计划 | ||
73 | +api-online.test.boxfish.cn/preference/purchase/setting?purchase=OPEN_4P&access_token=admin | ||
74 | +POST | ||
75 | +参数约定: | ||
76 | +purchase=OPEN或OPEN_4P或OPEN_1P; | ||
77 | +返回: | ||
78 | +{ | ||
79 | + "msg": "success" | ||
80 | +} |
-
Please register or login to post a comment