POST api/AuthShare/RequestList

Request sharing list

Request Information

Body Parameters

Apply for a list of requests for sharing devices

RequestListModel
NameDescriptionTypeAdditional information
UserId

user id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<RequestListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <UserId>1</UserId>
</RequestListModel>

Response Information

Resource Description

State value is:
0. Indicates success
100. Indicates success,but no data list

RequestListResult
NameDescriptionTypeAdditional information
Items

ensemble of communication

Collection of RequestInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "DeviceId": 1,
      "UserId": 2,
      "UserName": "sample string 3",
      "RequestId": 4,
      "Status": 5,
      "Created": "sample string 6",
      "Info": "sample string 7",
      "Nickname": "sample string 8",
      "Avatar": "sample string 9"
    },
    {
      "DeviceId": 1,
      "UserId": 2,
      "UserName": "sample string 3",
      "RequestId": 4,
      "Status": 5,
      "Created": "sample string 6",
      "Info": "sample string 7",
      "Nickname": "sample string 8",
      "Avatar": "sample string 9"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<RequestListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:RequestInfo>
      <d2p1:Avatar>sample string 9</d2p1:Avatar>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:DeviceId>1</d2p1:DeviceId>
      <d2p1:Info>sample string 7</d2p1:Info>
      <d2p1:Nickname>sample string 8</d2p1:Nickname>
      <d2p1:RequestId>4</d2p1:RequestId>
      <d2p1:Status>5</d2p1:Status>
      <d2p1:UserId>2</d2p1:UserId>
      <d2p1:UserName>sample string 3</d2p1:UserName>
    </d2p1:RequestInfo>
    <d2p1:RequestInfo>
      <d2p1:Avatar>sample string 9</d2p1:Avatar>
      <d2p1:Created>sample string 6</d2p1:Created>
      <d2p1:DeviceId>1</d2p1:DeviceId>
      <d2p1:Info>sample string 7</d2p1:Info>
      <d2p1:Nickname>sample string 8</d2p1:Nickname>
      <d2p1:RequestId>4</d2p1:RequestId>
      <d2p1:Status>5</d2p1:Status>
      <d2p1:UserId>2</d2p1:UserId>
      <d2p1:UserName>sample string 3</d2p1:UserName>
    </d2p1:RequestInfo>
  </Items>
</RequestListResult>