ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/class/listByCode` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |njmc|是|string|年级名称(2012,2013。。。)|-| |xd|是|string|学段|-| |schoolid|是|string|根据学校id获取|-| **返回示例** - success ```json { "ret": 0, "msg": "ok", "data": [ { "realname": "邹峰", "username": "zoufenglsh", "id": "1000145570366856321", "uid": "1033145308280422915", "schoolid": "1002143798597099273", "gradeid": "25", "classname": "三班", "bjbm": "UF0dlJcVR0", "code": null, "create_time": "1455703668", "update_time": "1455703668", "status": "0", "type": "2", "njmc": "2013", "xd": "21", "xdtitle": "小学" }, { "realname": "邹峰", "username": "zoufenglsh", "id": "1000145570118019856", "uid": "1033145308280422915", "schoolid": "1002143798597099273", "gradeid": "25", "classname": "二班3", "bjbm": "pYKthl2Cnn", "code": "2", "create_time": "1455701180", "update_time": "1455701209", "status": "0", "type": "2", "njmc": "2013", "xd": "21", "xdtitle": "小学" }, ...... ] } ``` - error ```json { "ret": -1, "msg": "参数错误" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2016-03-29 13:38:10 * * * * *