練習數(shù)據(jù)
1、獲取考生待參加練習
獲取考生待參加練習
獲取考生待參加練習列表。如在第三方應用或App中,需要展示考試云待參加練習列表。
接口地址:https://api.kaoshiyun.com.cn/api/v5/examaction.ashx?token=[Token]&action=getUserExer&account=[account]&pageIndex=[pageIndex]&pageSize=[pageSize]
請求方式:GET或POST
參數(shù)說明:
參數(shù)名稱 | 說明 |
token | 接口調(diào)用憑證,2小時內(nèi)有效,請注意時效性 |
action | getUserExer |
account | 考生賬號 |
pageIndex | 分頁頁碼,默認第1頁 |
pageSize | 每頁條數(shù),默認10條 |
返回值說明:
1、執(zhí)行成功
JSON返回值格式
{ "totalCount": 2, "currentPageIndex": 1, "items": [ { "examID": "661502", "examName": "會計基礎練習A卷", "beginTime": "2021-04-25 09:30", "endTime": "2021-05-02 09:30", "examUrl": "https://練習網(wǎng)址/v5/exam/661502" }, { "examID": "d7310f", "examName": "會計基礎章節(jié)練習", "beginTime": "2021-03-18 17:12", "endTime": "2021-07-13 17:12", "examUrl": "https://練習網(wǎng)址/v5/exer/d7310f" } ] }
返回值參數(shù)說明
參數(shù)名稱 | 說明 |
totalCount | 總記錄數(shù) |
currentPageIndex | 當前頁碼 |
examID | 練習編號 |
beginTime | 練習開始時間 |
endTime | 練習結(jié)束時間 |
examURL | 練習入口鏈接,點擊鏈接進入練習 |
2、執(zhí)行失敗,返回值
{"errcode":"40006","errmsg":"AccessToken has expired"}
{"errcode":"40501","errmsg":"account參數(shù)不允許為空"}
{"errcode":"40502","errmsg":"account:[賬號]在考試云中不存在"}