进入留白作答
const r = await mn.api('/writing/blank-enter', {
method: 'POST',
body: { requestId, questionId, carrier: 'blank', confirm: true }
});
if (r.error) mn.log(r.error.code);{
"schemaVersion": 1,
"bridgeApiVersion": "0.91",
"requestId": "9F8E7D6C-5B4A-4938-8271-6F5E4D3C2B1A",
"state": "pending",
"settled": false,
"outcome": "accepted",
"ready": false,
"canSwitch": false,
"scope": "current-window"
}手写会话
进入留白作答
进入题目对应的留白作答位置。该接口可能触发窗口转场,调用后应查询转场结果。
POST
/
writing
/
blank-enter
进入留白作答
const r = await mn.api('/writing/blank-enter', {
method: 'POST',
body: { requestId, questionId, carrier: 'blank', confirm: true }
});
if (r.error) mn.log(r.error.code);{
"schemaVersion": 1,
"bridgeApiVersion": "0.91",
"requestId": "9F8E7D6C-5B4A-4938-8271-6F5E4D3C2B1A",
"state": "pending",
"settled": false,
"outcome": "accepted",
"ready": false,
"canSwitch": false,
"scope": "current-window"
}请求体
application/json
响应
转场结果。可能还有未列出的字段。
作答转场结果。看 settled、outcome、ready 与 canSwitch,不要只看 HTTP 状态码。