POST api/GuarderPosition/UploadGuarderPosition
监护人上传位置信息 [手表]
位置分享后。可定时上传自己的位置
Request Information
Body Parameters
UploadGuarderPositionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
监护人的用户Id |
integer |
None. |
| Lat |
纬度 |
decimal number |
None. |
| Lng |
经度 |
decimal number |
None. |
| IsInChina |
是否国内 |
boolean |
None. |
| MapType |
地图类型 |
string |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"Lat": 2.0,
"Lng": 3.0,
"IsInChina": true,
"MapType": "sample string 5",
"Token": "sample string 6",
"Language": "sample string 7",
"AppId": "sample string 8"
}
application/xml, text/xml
Sample:
<UploadGuarderPositionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 8</AppId> <Language>sample string 7</Language> <Token>sample string 6</Token> <IsInChina>true</IsInChina> <Lat>2</Lat> <Lng>3</Lng> <MapType>sample string 5</MapType> <UserId>1</UserId> </UploadGuarderPositionModel>
Response Information
Resource Description
State状态码:
0. 表示成功
| Name | Description | Type | Additional information |
|---|---|---|---|
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"State": 1
}
application/xml, text/xml
Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>1</State> </BaseResult>