K12 版本管理接口说明

云教室-设备激活验证

URL: /v1/ccr/binding

请求方式:POST

是否需要授权

参数:

名称 必选 类型 说明
macinfo true char json字符串 详见示例

响应:

名称 必选 类型
status int 状态
msg char 返回信息

JSON示例:

macinfo:
{
    "ActiveCode":"PLJOHRWTM81I",
    "MachineCode": "BFEBFBFF000906E9267074FF",
    "SchoolCode": "110000002",
    "Code": "hello world",
    "Secret": "qi2gSMlFcvE00pzLC5XcpQId4Ni41tI1echtxVVf7KrSEfF7c5dBDKyZKrczMm5rumjjFDpXYHdUw2FGBfcXTOlC71FoQ75rDFFtZK87Gz093J8axMJJ5UxycY0Yc6ljf778eCekWD7xdqJoAUsqrl84VzNmk1u8j4tYjAReYIY="
}

//HTTP Status Code 200 成功返回
{
    "data": {
        "SchoolCode": "110000002",
        "SchoolName": "北京市平谷中学(初中部)",
        "ClassRoomID": 10,
        "ClassRoomName": "云教室01",
        "BindingDate": 1575448397,
        "ExpiredDate": 1607070797
    },
    "msg": "success",
    "status": 200
}
// HTTP Status Code 400 失败返回
{
    "msg": "错误信息",
    "status": 400
}