开发者中心

应用开发API接口帐号API

用户登录(同时返回AccessToken)

请求方式及地址

   POST 
   http://api.nlecloud.com/Users/Login

包体请求参数

参数类型描述其它
Account string 用户名 Required
Password string 用户密码 RequiredData type: PasswordString length: inclusive between 0 and 32
IsRememberMe boolean 记住密码

请求示例

{
  "Account": "sample string 1",
  "Password": "sample string 2",
  "IsRememberMe": true
}

响应参数

参数类型描述其它
ResultObj AccountLoginResultDTO
Status ResultStatus 返回状态
StatusCode integer 返回的状态码
Msg string 返回的消息
ErrorObj Object

响应示例

{
  "ResultObj": {
    "UserID": 1,
    "UserName": "sample string 2",
    "Email": "sample string 3",
    "Telphone": "sample string 4",
    "Gender": true,
    "CollegeID": 6,
    "CollegeName": "sample string 7",
    "RoleName": "sample string 8",
    "RoleID": 9,
    "AccessToken": "sample string 10",
    "AccessTokenErrCode": 11,
    "ReturnUrl": "sample string 12",
    "DataToken": "sample string 13"
  },
  "Status": 0,
  "StatusCode": 1,
  "Msg": "sample string 2",
  "ErrorObj": {}
}

查询用户APIKey

请求方式及地址

   GET 
   http://api.nlecloud.com/Users/ApiKey

URL请求参数

参数类型描述其它
userID integer Required

响应参数

参数类型描述其它
ResultObj AccountApiKeyModifyDTO
Status ResultStatus 返回状态
StatusCode integer 返回的状态码
Msg string 返回的消息
ErrorObj Object

响应示例

{
  "ResultObj": {
    "UserID": 1,
    "IsApply": true,
    "ApiKey": "sample string 3",
    "ApiKeyExpire": "2023-01-29T21:37:32.7469001+08:00",
    "OperUserID": 4,
    "ClientIP": "sample string 5",
    "ReturnUrl": "sample string 6",
    "DataToken": "sample string 7"
  },
  "Status": 0,
  "StatusCode": 1,
  "Msg": "sample string 2",
  "ErrorObj": {}
}

更新用户APIKey

请求方式及地址

   PUT 
   http://api.nlecloud.com/Users/ApiKey

包体请求参数

参数类型描述其它
UserID integer 用户ID
ApiKey string 调用API的密钥 Required
ApiKeyExpire date API密钥的期限 Required
OperUserID integer 操作者ID

请求示例

{
  "UserID": 3,
  "ApiKey": "sample string 4",
  "ApiKeyExpire": "2023-01-29T21:37:32.7624923+08:00",
  "OperUserID": 5,
  "ReturnUrl": "sample string 6",
  "DataToken": "sample string 7"
}

响应参数

参数类型描述其它
Status ResultStatus 返回状态
StatusCode integer 返回的状态码
Msg string 返回的消息
ErrorObj Object

响应示例

{
  "Status": 0,
  "StatusCode": 1,
  "Msg": "sample string 2",
  "ErrorObj": {}
}