POST api/Device/BindDeviceForUser

The device has the main control number and applies for viewing

Request Information

Body Parameters

BindDeviceForUserModel
NameDescriptionTypeAdditional information
UserId

User id

integer

None.

DeviceId

Device id

integer

None.

Info

overhead information

string

None.

RelationName

Relationship name

string

None.

RelationPhone

The number of the phone number

string

None.

ParentId

Big group ID

integer

None.

GroupName

Group Name

string

None.

PersonName

Wearer's name

string

None.

NickName

nickname

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:
{
  "UserId": 1,
  "DeviceId": 2,
  "Info": "sample string 3",
  "RelationName": "sample string 4",
  "RelationPhone": "sample string 5",
  "ParentId": 6,
  "GroupName": "sample string 7",
  "PersonName": "sample string 8",
  "NickName": "sample string 9",
  "Token": "sample string 10",
  "Language": "sample string 11",
  "AppId": "sample string 12"
}

application/xml, text/xml

Sample:
<BindDeviceForUserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 12</AppId>
  <Language>sample string 11</Language>
  <Token>sample string 10</Token>
  <DeviceId>2</DeviceId>
  <GroupName>sample string 7</GroupName>
  <Info>sample string 3</Info>
  <NickName>sample string 9</NickName>
  <ParentId>6</ParentId>
  <PersonName>sample string 8</PersonName>
  <RelationName>sample string 4</RelationName>
  <RelationPhone>sample string 5</RelationPhone>
  <UserId>1</UserId>
</BindDeviceForUserModel>

Response Information

Resource Description

Statestatus codeillustrate:
0. success
1000. The user does not exist
1100. device does not exist
1500. The device has the main control number and has applied to the main control number to see the device request
1550. The device has the main control number and applies for viewing failure
4000. failure

NormalResult
NameDescriptionTypeAdditional information
Message

Message [in most cases, the message can be used as a prompt]

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "State": 2
}

application/xml, text/xml

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