練習(xí)數(shù)據(jù)

1、獲取考生待參加練習(xí)

獲取考生待參加練習(xí)

獲取考生待參加練習(xí)列表。如在第三方應(yīng)用或App中,需要展示考試云待參加練習(xí)列表。

接口地址: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小時(shí)內(nèi)有效,請注意時(shí)效性

action

getUserExer

account

考生賬號

pageIndex

分頁頁碼,默認(rèn)第1頁

pageSize

每頁條數(shù),默認(rèn)10條


返回值說明:

1、執(zhí)行成功

JSON返回值格式

{
  "totalCount": 2,
  "currentPageIndex": 1,
  "items": [
    {
      "examID": "661502",
      "examName": "會計(jì)基礎(chǔ)練習(xí)A卷",
      "beginTime": "2021-04-25 09:30",
      "endTime": "2021-05-02 09:30",
      "examUrl": "https://練習(xí)網(wǎng)址/v5/exam/661502"
    },
    {
      "examID": "d7310f",
      "examName": "會計(jì)基礎(chǔ)章節(jié)練習(xí)",
      "beginTime": "2021-03-18 17:12",
      "endTime": "2021-07-13 17:12",
      "examUrl": "https://練習(xí)網(wǎng)址/v5/exer/d7310f"
    }
  ]
}

返回值參數(shù)說明

參數(shù)名稱

說明

totalCount

總記錄數(shù)

currentPageIndex

當(dāng)前頁碼

examID

練習(xí)編號

beginTime

練習(xí)開始時(shí)間

endTime

練習(xí)結(jié)束時(shí)間

examURL

練習(xí)入口鏈接,點(diǎn)擊鏈接進(jìn)入練習(xí)


2、執(zhí)行失敗,返回值

{"errcode":"40006","errmsg":"AccessToken has expired"}
{"errcode":"40501","errmsg":"account參數(shù)不允許為空"}
{"errcode":"40502","errmsg":"account:[賬號]在考試云中不存在"}