得分记录上报(同步练习/消灭生字/单词/趣味古诗朗读)
[TOC]
简要描述
- 用户学习得分记录上报(同步练习/消灭生字/单词/趣味古诗朗读)
请求URL
/zjhlapi/learnRecord/score/report
请求方式
- POST
请求头设置
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
timestamp | 是 | string | 当前时间的时间戳 |
appId | 是 | string | app标识 |
nonce | 是 | string | 随机生成的6位字符串 |
sign | 是 | string | 由appId,appSecret,nonce,timestamp通过sha1加密得到的sign标识 |
token | 是 | string | 用户token |
请求示例
{
"appId": 0, // 应用id
"aveScore": 0, // 当前答题获得了几颗星星
"bookCode": "", // bookCode
"channelId": "", // 渠道id
"channelUserId": "123456", // 渠道userId
"chapterCode": "", // chapterCode
"contentsCode": "", // contentsCode
"contentsId": 2, // contentsId
"questionCommonList": [
{
"questionId": "", // 单道题题id
"score": 0, // 单道题题得分情况
"userAnswer": [] // 单道题用户选择的答案
}
],
"type": "0-同步课堂,1-消灭生字,2-同步练习,3-趣味诗词,4-极速口算,5-消灭单词",
"userId": "111"
}
"备注说明:同步练习传contentsId,消灭生字、单词、趣味诗词传bookCode,chapterCode,contentsCode"
返回示例
{
"code": 0,
"data": {},
"message": ""
}