POST api/Dance/SavaGuardian

Synchronize the guardian data

Request Information

Body Parameters

GuardianModel
NameDescriptionTypeAdditional information
UserName

user

string

None.

LoginName

login name

string

None.

Pass

password

string

None.

PhoneNum

cell phone number

string

None.

IMEI

IMEI NUMBER

string

None.

List

Guardian collection

Collection of Guardians

None.

MemberInfo

China guardian collection

ChinaGuardianMemberInfoModel

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "LoginName": "sample string 2",
  "Pass": "sample string 3",
  "PhoneNum": "sample string 4",
  "IMEI": "sample string 5",
  "List": [
    {
      "Tutelage_Name": "sample string 1",
      "Tutelage_Sex": "sample string 2",
      "Tutelage_Relation": "sample string 3",
      "Tutelage_Phone": "sample string 4",
      "Tutelage_Telphone": "sample string 5",
      "Tutelage_Unitphone": "sample string 6",
      "Tutelage_Unit": "sample string 7",
      "Tutelage_Address": "sample string 8",
      "Tutelage_Seq": 9
    },
    {
      "Tutelage_Name": "sample string 1",
      "Tutelage_Sex": "sample string 2",
      "Tutelage_Relation": "sample string 3",
      "Tutelage_Phone": "sample string 4",
      "Tutelage_Telphone": "sample string 5",
      "Tutelage_Unitphone": "sample string 6",
      "Tutelage_Unit": "sample string 7",
      "Tutelage_Address": "sample string 8",
      "Tutelage_Seq": 9
    }
  ],
  "MemberInfo": {
    "Name": "sample string 1",
    "Sex": "sample string 2",
    "Age": 3,
    "HomePhone": "sample string 4",
    "Phone": "sample string 5",
    "Address": "sample string 6",
    "IDCards": "sample string 7",
    "PastHistory": "sample string 8",
    "Height": 9,
    "Weight": 10.0,
    "Pulse": 11,
    "HeartRate": 12,
    "BloodSugar": 13,
    "BloodPressure": 14,
    "LeftVision": 15,
    "RightVision": 16
  }
}

application/xml, text/xml

Sample:
<GuardianModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <IMEI>sample string 5</IMEI>
  <List>
    <Guardians>
      <Tutelage_Address>sample string 8</Tutelage_Address>
      <Tutelage_Name>sample string 1</Tutelage_Name>
      <Tutelage_Phone>sample string 4</Tutelage_Phone>
      <Tutelage_Relation>sample string 3</Tutelage_Relation>
      <Tutelage_Seq>9</Tutelage_Seq>
      <Tutelage_Sex>sample string 2</Tutelage_Sex>
      <Tutelage_Telphone>sample string 5</Tutelage_Telphone>
      <Tutelage_Unit>sample string 7</Tutelage_Unit>
      <Tutelage_Unitphone>sample string 6</Tutelage_Unitphone>
    </Guardians>
    <Guardians>
      <Tutelage_Address>sample string 8</Tutelage_Address>
      <Tutelage_Name>sample string 1</Tutelage_Name>
      <Tutelage_Phone>sample string 4</Tutelage_Phone>
      <Tutelage_Relation>sample string 3</Tutelage_Relation>
      <Tutelage_Seq>9</Tutelage_Seq>
      <Tutelage_Sex>sample string 2</Tutelage_Sex>
      <Tutelage_Telphone>sample string 5</Tutelage_Telphone>
      <Tutelage_Unit>sample string 7</Tutelage_Unit>
      <Tutelage_Unitphone>sample string 6</Tutelage_Unitphone>
    </Guardians>
  </List>
  <LoginName>sample string 2</LoginName>
  <MemberInfo>
    <Address>sample string 6</Address>
    <Age>3</Age>
    <BloodPressure>14</BloodPressure>
    <BloodSugar>13</BloodSugar>
    <HeartRate>12</HeartRate>
    <Height>9</Height>
    <HomePhone>sample string 4</HomePhone>
    <IDCards>sample string 7</IDCards>
    <LeftVision>15</LeftVision>
    <Name>sample string 1</Name>
    <PastHistory>sample string 8</PastHistory>
    <Phone>sample string 5</Phone>
    <Pulse>11</Pulse>
    <RightVision>16</RightVision>
    <Sex>sample string 2</Sex>
    <Weight>10</Weight>
  </MemberInfo>
  <Pass>sample string 3</Pass>
  <PhoneNum>sample string 4</PhoneNum>
  <UserName>sample string 1</UserName>
</GuardianModel>

Response Information

Resource Description

Statestatus code
0.Indicates success
1:The login name already exists
2: data exception
3: Login name, password, name cannot be empty
4: The user name or login name has an exception character
5: The guardian table data failed to synchronize
6:device does not exist
7:device couldn't be used [The equipment may not be registered with other people]
8: The synchronization guardian information failed

DanceMemberInfoResult
NameDescriptionTypeAdditional information
State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "State": 1
}

application/xml, text/xml

Sample:
<DanceMemberInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
</DanceMemberInfoResult>