获取集内第一本文档的标识
const r = await mn.api('/study-sets/' + topicid + '/documents');
const book = r.items.find(d => d.sourceState === 'normal');
const bookmd5 = book && book.bookmd5;{
"items": [
{
"isMain": true,
"bookmd5": "8daef026f17a04db9b325c86366419936de1ef8b454218998990a3cef6f467a7",
"title": "理工公式对照材料",
"pageCount": null,
"unavailableReason": null,
"sourceState": "normal",
"breakdownAvailable": true
},
{
"isMain": false,
"bookmd5": "cd5cbdc050359b22dedcc5206ed3ca1e187f7f691f309e4bcffa4fedbd099a86",
"title": "一元一次方程与百分数·练习A",
"pageCount": null,
"unavailableReason": null,
"sourceState": "normal",
"breakdownAvailable": true
}
],
"bridgeApiVersion": "0.61"
}学习集与卡组
列出学习集文档
列出该学习集里的文档。没有列出全库文档的接口,跨学习集查找文档要用搜索接口。
每一项返回内容标识、标题、可用状态。sourceState 说明文件本身是否还在,
unavailableReason 说明拿不到的原因。
GET
/
study-sets
/
{topicid}
/
documents
获取集内第一本文档的标识
const r = await mn.api('/study-sets/' + topicid + '/documents');
const book = r.items.find(d => d.sourceState === 'normal');
const bookmd5 = book && book.bookmd5;{
"items": [
{
"isMain": true,
"bookmd5": "8daef026f17a04db9b325c86366419936de1ef8b454218998990a3cef6f467a7",
"title": "理工公式对照材料",
"pageCount": null,
"unavailableReason": null,
"sourceState": "normal",
"breakdownAvailable": true
},
{
"isMain": false,
"bookmd5": "cd5cbdc050359b22dedcc5206ed3ca1e187f7f691f309e4bcffa4fedbd099a86",
"title": "一元一次方程与百分数·练习A",
"pageCount": null,
"unavailableReason": null,
"sourceState": "normal",
"breakdownAvailable": true
}
],
"bridgeApiVersion": "0.61"
}