企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
**基本信息** 接口地址:`http[s]://api.12xue.com/oauth2/register` 请求方式:`POST` 请求类型:`application/x-www-form-urlencoded` 响应类型:`json` **请求头** |参数名|必选|描述|默认值| |---|---|---|---| |Token|否|用户唯一token|-| |Source|是|客户端来源标识|-| |Version|是|客户端当前版本号|1.0.0| |Identity|否|用户角色|-| **参数** |参数名|必选|类型|描述|默认值| |---|---|---|---|---| |identitytype|是|int|用户身份(2:教师,3:学生,4:家长)|-| |realname|否|string|真实姓名(非家长角色时必填)|-| |email|否|string|注册邮箱|-| |telephone|是|string|手机号(家长必填)|-| |access_token|是|string|第三方系统返回的access_token|-| |type|是|string|第三方账号类型:qq、wx、weibo、renren|-| |openid|是|string|第三方账号openid|-| |expire|是|string|第三方系统返回的expire|-| |username|否|string|不能以数字开头,长度为6-20位(非家长角色时必填)|-| |password|是|string|长度为6-20位|-| |invite_code|否|string|邀请码|-| |sfzjh|否|string|身份证号15或18位|-| **返回示例** - error ```json { "msg": "账号已经存在!", "ret": -1 } ``` - success ```json { "ret": 0, "msg": "", "uid": "10331**********2904", "username": "xb_tch01", "realname": "小波", "email": null, "telephone": null, "sex": "0", "identitytype": "2", "is_audit": "1", "is_active": "1", "is_init": "1", "origin": "1", // 用户来源(0:导入的、1:邀请码的、2:开放注册的) "certificate": "0", //教师审核状态(0:未上传、2:已通过、-1:未通过、1待审核) "create_time": "1454575846", "update_time": "1454575846", "status": "0" } ``` **返回参数说明** |参数名|类型|说明| |---|---|---| |ret |int |状态码 0:成功| |msg |string |状态消息 ok:成功| |origin|int|用户来源(0:导入的、1:邀请码的、2:开放注册的)| |certificate|int|教师审核状态(0:未上传、2:已通过、-1:未通过、1待审核)| --: 该接口最后修订时间:2021-10-26 18:33:40 * * * * *