💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/class/lists` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |schoolid|否|string|根据学校id获取|-| |gradeid|否|string|根据年级id获取|-| |num|否|string|每页获取几条(不传num就不按分页方式获取列表)|-| |p|否|string|第几页数据|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "count": "6", "totalPages": 1, "totalRows": "6", "nowPage": 1, "data": [ { "id": "100014546727032090", "schoolid": "1003143997288692791", "gradeid": "17", "classname": "二班", "bjbm": "VsAvd1jlrK", "create_time": "1454672702", "update_time": "1455160085", "status": "0", "type": "2" }, { "id": "100014551795176418", "schoolid": "1003143997288692791", "gradeid": "13", "classname": "123", "bjbm": "h2IxZMkZKP", "create_time": "1455179517", "update_time": "1455179517", "status": "0", "type": "2" }, ...... ] } ``` - error ```json { "msg": "未知错误", "ret": -1 } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2016-02-13 14:30:18 * * * * *