注册OEM用户
正式环境
https://accounts.zwsoft.cn
正式环境
https://accounts.zwsoft.cn
POST
/api/v1.0/oem/users/registration
最后修改时间:2022-08-15 05:39:31
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
必需
示例值:
Bearer eyJhbGciB5DZtTWYVqa9A
Body 参数application/json
array of:
displayName
string | null
显示名称
password
string
密码
>= 8 字符<= 32 字符
preferredLanguage
string | null
偏好语言
默认值:
zh-CN
示例
[
{
"displayName": "Test User 2",
"password": "Rand.2022",
"preferredLanguage": "en-US"
},
{
"password": "Zwsoft.2022"
},
{
"displayName": "Test User 3"
},
{
"displayName": "Test User 4",
"password": "Rand.2022",
},
{
"displayName": "Test User 5",
"password": "Rand.2022",
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://accounts.zwsoft.cn/api/v1.0/oem/users/registration' \
--header 'Authorization: Bearer eyJhbGciB5DZtTWYVqa9A' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"displayName": "Test User 2",
"password": "Rand.2022",
"preferredLanguage": "en-US"
},
{
"password": "Zwsoft.2022"
},
{
"displayName": "Test User 3"
},
{
"displayName": "Test User 4",
"password": "Rand.2022",
},
{
"displayName": "Test User 5",
"password": "Rand.2022",
}
]'
返回响应
🟢200成功
application/json
Body
status
integer
返回码
message
string
错误详细信息
error
string | null
错误代号
data
array [object {2}]
返回数据
error
object | null
错误信息
userInfo
用户信息
示例
{
"status": 0,
"message": "success",
"error": null,
"data": [
{
"error": null,
"userInfo": {
"guid": "0051a2d8-c0c0-4b67-89db-8d157d7f9557",
"firstName": "-",
"lastName": "-",
"displayName": "Test User 2",
"profileImage": "https://test.resources.zwsoft.cn/prd/ZwsoftAccounts/public/userHeadImg/XnKExZCH621rEoeNCrAWuQYh2FezLyj1UNnfzxGInm-BCAfqUiROJLeAVGvwwdro/originalPic.png?v=1653030382",
"preferredLanguage": "en-US",
"userName": "9nNhbpAdVv",
"phone": null,
"email": null,
"itc": null,
"accountState": "Normal"
}
},
{
"error": null,
"userInfo": {
"guid": "bb474593-f215-4e07-8a20-6468b164249b",
"firstName": "-",
"lastName": "-",
"displayName": "zEwH7ytg7x",
"profileImage": "https://test.resources.zwsoft.cn/prd/ZwsoftAccounts/public/userHeadImg/5Wonq1S_eBVAJD8uZnO-eukQHKNdquT2-SEUiUCbNdOci2WSpeRY6MSKB3v0RGhe/originalPic.png?v=1653030383",
"preferredLanguage": "zh-CN",
"userName": "zEwH7ytg7x",
"phone": null,
"email": null,
"itc": null,
"accountState": "Normal"
}
},
{
"error": {
"status": 50007,
"message": "Password Unqualified",
"error": "CreateUserFailed",
"data": null
},
"userInfo": null
},
{
"error": null,
"userInfo": {
"guid": "cc8068d5-7ad1-4033-af38-b1f297531e54",
"firstName": "-",
"lastName": "-",
"displayName": "Test User 4",
"profileImage": "https://test.resources.zwsoft.cn/prd/ZwsoftAccounts/public/userHeadImg/M6GT-9Ro1Gwc-oJl16ZLrOX0pBY8jKhnGZrzLzi4UTlGo9Sebj8iTpr_RivJupiN/originalPic.png?v=1653030384",
"preferredLanguage": "zh-CN",
"userName": "9idsgBZmwe",
"phone": null,
"email": null,
"itc": null,
"accountState": "Normal"
}
},
{
"error": {
"status": 50010,
"message": "This OEM client cannot create more users",
"error": "CreateUserFailed",
"data": null
},
"userInfo": null
}
]
}
修改于 2022-08-15 05:39:31