POST api/User/ParentUserInfo

Get Parent UserInfo

Request Information

Body Parameters

ParentUserModel
NameDescriptionTypeAdditional information
UserId

integer

None.

DeviceId

integer

None.

Type

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

application/xml, text/xml

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

Response Information

Resource Description

Statestatus codeillustrate:
0. return success
1000. The user or device does not exist

ParentUserResult
NameDescriptionTypeAdditional information
UserInfo

UserInfo

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "UserInfo": {
    "UserId": 1,
    "Username": "sample string 2",
    "LoginName": "sample string 3",
    "Email": "sample string 4",
    "CellPhone": "sample string 5",
    "Address": "sample string 6",
    "Avatar": "sample string 7",
    "FirstName": "sample string 8",
    "Gender": true,
    "Birthday": "2019-08-22T08:29:10.0573192+08:00",
    "Weight": 10.1,
    "Height": 11.1,
    "Steps": 12,
    "Distance": 13.1,
    "SportTime": 14,
    "Calorie": 15
  },
  "State": 1
}

application/xml, text/xml

Sample:
<ParentUserResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <UserInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:Address>sample string 6</d2p1:Address>
    <d2p1:Avatar>sample string 7</d2p1:Avatar>
    <d2p1:Birthday>2019-08-22T08:29:10.0573192+08:00</d2p1:Birthday>
    <d2p1:Calorie>15</d2p1:Calorie>
    <d2p1:CellPhone>sample string 5</d2p1:CellPhone>
    <d2p1:Distance>13.1</d2p1:Distance>
    <d2p1:Email>sample string 4</d2p1:Email>
    <d2p1:FirstName>sample string 8</d2p1:FirstName>
    <d2p1:Gender>true</d2p1:Gender>
    <d2p1:Height>11.1</d2p1:Height>
    <d2p1:LoginName>sample string 3</d2p1:LoginName>
    <d2p1:SportTime>14</d2p1:SportTime>
    <d2p1:Steps>12</d2p1:Steps>
    <d2p1:UserId>1</d2p1:UserId>
    <d2p1:Username>sample string 2</d2p1:Username>
    <d2p1:Weight>10.1</d2p1:Weight>
  </UserInfo>
</ParentUserResult>