POST api/AuthShare/UserRequest
申请分享请求
Request Information
Body Parameters
UserRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceId |
设备 id |
integer |
None. |
| GroupId |
分组 id |
integer |
None. |
| UserId |
请求人 userid |
integer |
None. |
| UserName |
请求人名称 |
string |
None. |
| Info |
请求人填写的附加信息 |
string |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DeviceId": 1,
"GroupId": 2,
"UserId": 3,
"UserName": "sample string 4",
"Info": "sample string 5",
"Token": "sample string 6",
"Language": "sample string 7",
"AppId": "sample string 8"
}
application/xml, text/xml
Sample:
<UserRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 8</AppId> <Language>sample string 7</Language> <Token>sample string 6</Token> <DeviceId>1</DeviceId> <GroupId>2</GroupId> <Info>sample string 5</Info> <UserId>3</UserId> <UserName>sample string 4</UserName> </UserRequestModel>
Response Information
Resource Description
State 值为:
0. 表示成功
1100. 表示设备不存在
1500. 表示分享申请已发送
4000. 表示失败
| Name | Description | Type | Additional information |
|---|---|---|---|
| Message | string |
None. |
|
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Message": "sample string 1",
"State": 2
}
application/xml, text/xml
Sample:
<UserRequestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>2</State> <Message>sample string 1</Message> </UserRequestResult>