POST api/Person/GetPersonProfile

Acquire the device related object (staff) information [watch]

Request Information

Body Parameters

GetPersonModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

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:
{
  "DeviceId": 1,
  "UserId": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

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

Response Information

Resource Description

0. Indicates success
1100. indicates device does not exist

GetPersonResult
NameDescriptionTypeAdditional information
Item

menber information

PersonInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Item": {
    "Birthday": "sample string 1",
    "DeviceID": 2,
    "Gender": 3,
    "School": "sample string 4",
    "Grade": "sample string 5",
    "Height": 6,
    "Nickname": "sample string 7",
    "UpdateTime": "sample string 8",
    "Weight": 9.0,
    "Avatar": "sample string 10",
    "UserId": 11,
    "Sim": "sample string 12",
    "Age": 13,
    "BloodType": "sample string 14",
    "CellPhone": "sample string 15",
    "CellPhone2": "sample string 16",
    "Address": "sample string 17",
    "Breed": "sample string 18",
    "IDnumber": "sample string 19",
    "Remark": "sample string 20",
    "MarkerColor": 21,
    "Area": "sample string 22",
    "Condition": "sample string 23",
    "Notes": "sample string 24",
    "Allergic": "sample string 25",
    "Drug": "sample string 26",
    "Organ": 27
  },
  "State": 1
}

application/xml, text/xml

Sample:
<GetPersonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:Address>sample string 17</d2p1:Address>
    <d2p1:Age>13</d2p1:Age>
    <d2p1:Allergic>sample string 25</d2p1:Allergic>
    <d2p1:Area>sample string 22</d2p1:Area>
    <d2p1:Avatar>sample string 10</d2p1:Avatar>
    <d2p1:Birthday>sample string 1</d2p1:Birthday>
    <d2p1:BloodType>sample string 14</d2p1:BloodType>
    <d2p1:Breed>sample string 18</d2p1:Breed>
    <d2p1:CellPhone>sample string 15</d2p1:CellPhone>
    <d2p1:CellPhone2>sample string 16</d2p1:CellPhone2>
    <d2p1:Condition>sample string 23</d2p1:Condition>
    <d2p1:DeviceID>2</d2p1:DeviceID>
    <d2p1:Drug>sample string 26</d2p1:Drug>
    <d2p1:Gender>3</d2p1:Gender>
    <d2p1:Grade>sample string 5</d2p1:Grade>
    <d2p1:Height>6</d2p1:Height>
    <d2p1:IDnumber>sample string 19</d2p1:IDnumber>
    <d2p1:MarkerColor>21</d2p1:MarkerColor>
    <d2p1:Nickname>sample string 7</d2p1:Nickname>
    <d2p1:Notes>sample string 24</d2p1:Notes>
    <d2p1:Organ>27</d2p1:Organ>
    <d2p1:Remark>sample string 20</d2p1:Remark>
    <d2p1:School>sample string 4</d2p1:School>
    <d2p1:Sim>sample string 12</d2p1:Sim>
    <d2p1:UpdateTime>sample string 8</d2p1:UpdateTime>
    <d2p1:UserId>11</d2p1:UserId>
    <d2p1:Weight>9</d2p1:Weight>
  </Item>
</GetPersonResult>