POST api/WxSmallApp/BindPhone

微信小程序登录后绑定手机号

Request Information

URI Parameters

None.

Body Parameters

WxSmallBindPhone
NameDescriptionTypeAdditional information
phoneString

手机串

string

None.

wxSmallType

小程序类型

WxSmallType

None.

code

小程序code

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<WxSmallAppController.WxSmallBindPhone xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Presentation.Controllers.Api.WeChat">
  <code>sample string 2</code>
  <phoneString>sample string 1</phoneString>
  <wxSmallType>WxSmallTc</wxSmallType>
</WxSmallAppController.WxSmallBindPhone>

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 'WxSmallBindPhone'.

Response Information

Resource Description

微信小程序登录后绑定手机号

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />