注册新用户
POST
https://api.xiaoe-tech.com/xe.user.register/1.0.0
拥有此API的权限集 |
---|
用户管理-用户操作 |
sdk_user_id
时必传sdk_app_id
code=0
时,表示正常code=2501
时,表示必选字段缺失code=2502
时,表示字段格式无效code=2504
时,表示用户手机号重复请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.xiaoe-tech.com/xe.user.register/1.0.0' \
--header 'Content-Type: application/json' \
--data-raw '{
"access_token" : "xxxxxxxx",
"data" : {
"wx_union_id" : "XXXXXXXXXXXX",
"phone" : "136XXXXXXXX",
"avatar" : "XXXXXXXXXXXXXXXX",
"nickname" : "小鹅",
"gender" : 0,
"city" : "深圳",
"province" : "广东",
"country" : "中国",
"wx_name" : "张三",
"company" : "小鹅通",
"industry" : "在线教育",
"job" : "销售"
}
}'
响应示例响应示例
{
"code": 0,
"msg": "ok",
"data": {
"user_id": "u_xxxxxxxxxxxxxxxxxxxxx",
"user_exists": 0
}
}
请求参数
Body 参数application/json
返回响应
修改于 2022-03-09 06:34:07