POST api/Person/DeviceMasterInfo

Obtaining user information [private interfaces]

Request Information

Body Parameters

DeviceMasterInfoModel
NameDescriptionTypeAdditional information
DeviceId

IMEI

string

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

application/xml, text/xml

Sample:
<DeviceMasterInfoModel 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>
  <DeviceId>sample string 1</DeviceId>
</DeviceMasterInfoModel>

Response Information

Resource Description

Statestatus code
0. Indicates success
1100. device does not exist
4000. failure

DeviceMasterInfoResult
NameDescriptionTypeAdditional information
Info

DeviceMasterInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Info": {
    "DeviceId": "sample string 1",
    "UserId": 2,
    "Gender": true,
    "Pic": "sample string 4",
    "FullName": "sample string 5",
    "BloodGroup": "sample string 6",
    "Genotype": "sample string 7",
    "MajorIllness": "sample string 8",
    "Allergies": "sample string 9",
    "LGA": "sample string 10",
    "TourOperator": "sample string 11",
    "NIN": "sample string 12",
    "PassportNumber": "sample string 13",
    "Sim": "sample string 14",
    "MasterPhone": "sample string 15",
    "ActiveDate": "2018-12-19T06:13:38.3176563+08:00",
    "Id": 17,
    "dId": 18,
    "Password": "sample string 19",
    "FlightNo": "sample string 20"
  },
  "State": 1
}

application/xml, text/xml

Sample:
<DeviceMasterInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Info xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.Entity.Entity">
    <d2p1:ActiveDate>2018-12-19T06:13:38.3176563+08:00</d2p1:ActiveDate>
    <d2p1:Allergies>sample string 9</d2p1:Allergies>
    <d2p1:BloodGroup>sample string 6</d2p1:BloodGroup>
    <d2p1:DeviceId>sample string 1</d2p1:DeviceId>
    <d2p1:FlightNo>sample string 20</d2p1:FlightNo>
    <d2p1:FullName>sample string 5</d2p1:FullName>
    <d2p1:Gender>true</d2p1:Gender>
    <d2p1:Genotype>sample string 7</d2p1:Genotype>
    <d2p1:Id>17</d2p1:Id>
    <d2p1:LGA>sample string 10</d2p1:LGA>
    <d2p1:MajorIllness>sample string 8</d2p1:MajorIllness>
    <d2p1:MasterPhone>sample string 15</d2p1:MasterPhone>
    <d2p1:NIN>sample string 12</d2p1:NIN>
    <d2p1:PassportNumber>sample string 13</d2p1:PassportNumber>
    <d2p1:Password>sample string 19</d2p1:Password>
    <d2p1:Pic>sample string 4</d2p1:Pic>
    <d2p1:Sim>sample string 14</d2p1:Sim>
    <d2p1:TourOperator>sample string 11</d2p1:TourOperator>
    <d2p1:UserId>2</d2p1:UserId>
    <d2p1:dId>18</d2p1:dId>
  </Info>
</DeviceMasterInfoResult>