POST AddTown
Request Information
URI Parameters
None.
Body Parameters
AddTown| Name | Description | Type | Additional information |
|---|---|---|---|
| UserInfo | UserData |
None. |
|
| TownId | string |
None. |
|
| TownName | string |
None. |
|
| ZoneId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserInfo": {
"UserId": "sample string 1",
"Token": "sample string 2",
"App_Key": "sample string 3"
},
"TownId": "sample string 1",
"TownName": "sample string 2",
"ZoneId": "sample string 3"
}
application/xml, text/xml
Sample:
<AddTown xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MobileServices.Controllers">
<TownId>sample string 1</TownId>
<TownName>sample string 2</TownName>
<UserInfo>
<App_Key>sample string 3</App_Key>
<Token>sample string 2</Token>
<UserId>sample string 1</UserId>
</UserInfo>
<ZoneId>sample string 3</ZoneId>
</AddTown>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Result| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Message | string |
None. |
|
| Response | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 1,
"Message": "sample string 2",
"Response": "sample string 3"
}
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MobileServices"> <Message>sample string 2</Message> <Response>sample string 3</Response> <Status>1</Status> </Result>