POST user/bind-phone

Request Information

URI Parameters

None.

Body Parameters

RqBindPhone
NameDescriptionTypeAdditional information
phoneNum

string

None.

vCode

string

None.

lat

decimal number

None.

lng

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "phoneNum": "sample string 1",
  "vCode": "sample string 2",
  "lat": 3.0,
  "lng": 4.0
}

application/xml, text/xml

Sample:
<RqBindPhone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GarbageBin.Web.Controllers">
  <lat>3</lat>
  <lng>4</lng>
  <phoneNum>sample string 1</phoneNum>
  <vCode>sample string 2</vCode>
</RqBindPhone>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RqBindPhone'.

Response Information

Resource Description

RtBase
NameDescriptionTypeAdditional information
code

integer

None.

msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<RtBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BaseWebApi.Model">
  <code>1</code>
  <msg>sample string 2</msg>
</RtBase>