ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/notify/usersByClassid` 请求方式:`GET` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |identitytype|是|string|3学生4家长|3| |classidid|是|string|班级id|-| **返回示例** - success ```json 学生 { "ret": 0, "msg": "ok", "data": [ { "uid": "1033145437554168923", "username": "yiban04", "realname": "付雅言", "sex": 0, "telephone": null, "pinyin": "FuYaYan", "initial": "F", "identitytype": 3, "classname": "四班" }, { "uid": "1033145437554145904", "username": "yiban02", "realname": "孔敬书", "sex": 0, "telephone": null, "pinyin": "KongJingShu", "initial": "K", "identitytype": 3, "classname": "四班" } ] } 家长 { "ret": 0, "msg": "ok", "data": [ { "uid": "1033145438093463500", "username": "jiazhang02", "realname": "孔海洋", "sex": 0, "telephone": null, "pinyin": "KongHaiYang", "initial": "K", "identitytype": 4, "classname": "四班", "cuid": "1033145437554145904", "cusername": "yiban02", "crealname": "孔敬书" }, { "uid": "1033145437690777638", "username": "jiazhang01", "realname": "王福", "sex": 0, "telephone": null, "pinyin": "WangFu", "initial": "W", "identitytype": 4, "classname": "四班", "cuid": "1033145437554126584", "cusername": "yiban01", "crealname": "王安腾" } ] } ``` - error ```json { "ret": -1, "msg": "参数错误或者未定义" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| --: 该接口最后修订时间:2020-08-09 17:14:12 * * * * *