导入(注册)用户
简要描述
- 用户通过 AppServer 完成账号注册后,AppServer 再调用此接口导入 IM 以实现账号打通。
 
请求方式
post
请求 URL
{API_ADDRESS}/user/user_register
Header
| header 名 | 示例值 | 选填 | 类型 | 说明 | 
|---|---|---|---|---|
| operationID | 1646445464564 | 必填 | string | 用于全局链路追踪,建议使用时间戳,在每个请求中独立 | 
| token | eyJhbxxxx3Xs | 必填 | string | 管理员 token | 
请求参数示例
{
  "users": [
    {
      "userID": "11111112",
      "nickname": "yourNickname",
      "faceURL": "yourFaceURL"
    }
  ]
}
| 字段名 | 选填 | 类型 | 说明 | 
|---|---|---|---|
| users | 必填 | array | 用户列表 | 
| users.userID | 必填 | string | 用户 ID | 
| users.nickname | 必填 | string | 用户昵称 | 
| users.faceURL | 必填 | string | 用户头像URL | 
成功返回示例
{
  "errCode": 0,
  "errMsg": "",
  "errDlt": ""
}
成功返回示例的参数说明
| 参数名 | 类型 | 说明 | 
|---|---|---|
| errCode | int | 错误码,0 表示成功 | 
| errMsg | string | 错误简要信息,为空 | 
| errDlt | errDlt | 错误详细信息,为空 | 
失败返回示例
{
  "errCode": 1004,
  "errMsg": "RecordNotFoundError",
  "errDlt": ": [1004]RecordNotFoundError"
}
失败返回示例的参数说明
| 参数名 | 类型 | 说明 | 
|---|---|---|
| errCode | int | 错误码,具体查看全局错误码文档 | 
| errMsg | string | 错误简要信息 | 
| errDlt | errDlt | 错误详细信息 |