POST api/user/{cipher}/{clientId}/{machineCode}/{authorizationDays}?remarks={remarks}&deviceLimit={deviceLimit}

创建新的用户信息

Request Information

URI Parameters

NameDescriptionTypeAdditional information
cipher

暗号

string

Required

clientId

客户端编号

globally unique identifier

Required

machineCode

机器码

string

Required

authorizationDays

授权天数,由当前日期增加指定的授权天数,即为授权截止日

integer

Required

remarks

备注

string

None.

deviceLimit

群控设备数量限制,小于或等于0为不限制

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

用户信息

UserInfo
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

IdByClient

globally unique identifier

None.

MachineCode

string

None.

AuthorizeCode

string

None.

SessionId

globally unique identifier

None.

Deadline

date

None.

LastLoginTime

date

None.

RegisterTime

date

None.

LastLoginIp

string

None.

Remarks

string

None.

DeviceQuantityLimit

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "64eb70de-a4bd-4bdc-ad74-921582079f28",
  "IdByClient": "978821bb-1c67-4d8f-b12a-108f612c464e",
  "MachineCode": "sample string 3",
  "AuthorizeCode": "sample string 4",
  "SessionId": "5adef4d7-70ab-460c-8a85-f3f247acbaeb",
  "Deadline": "2018-11-13T10:48:00.6687796+08:00",
  "LastLoginTime": "2018-11-13T10:48:00.6687796+08:00",
  "RegisterTime": "2018-11-13T10:48:00.6687796+08:00",
  "LastLoginIp": "sample string 9",
  "Remarks": "sample string 10",
  "DeviceQuantityLimit": 11
}

application/xml, text/xml

Sample:
<UserInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AndroidClusterControlCommonClass">
  <AuthorizeCode>sample string 4</AuthorizeCode>
  <Deadline>2018-11-13T10:48:00.6687796+08:00</Deadline>
  <DeviceQuantityLimit>11</DeviceQuantityLimit>
  <Id>64eb70de-a4bd-4bdc-ad74-921582079f28</Id>
  <IdByClient>978821bb-1c67-4d8f-b12a-108f612c464e</IdByClient>
  <LastLoginIp>sample string 9</LastLoginIp>
  <LastLoginTime>2018-11-13T10:48:00.6687796+08:00</LastLoginTime>
  <MachineCode>sample string 3</MachineCode>
  <RegisterTime>2018-11-13T10:48:00.6687796+08:00</RegisterTime>
  <Remarks>sample string 10</Remarks>
  <SessionId>5adef4d7-70ab-460c-8a85-f3f247acbaeb</SessionId>
</UserInfo>