GET api/WeChatPublic/WxPublicACode?scene={scene}&bizId={bizId}&link={link}

生成公众号带参数临时二维码(引导关注)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
scene

场景值

WxACodeScene

Required

bizId

业务标识id(如房源id,商品id等)

integer

Required

link

要跳转的链接

string

Required

Body Parameters

None.

Response Information

Resource Description

生成公众号带参数临时二维码(引导关注)

CreateQrCodeResult
NameDescriptionTypeAdditional information
ticket

string

None.

expire_seconds

integer

None.

url

string

None.

errcode

ReturnCode

None.

ErrorCodeValue

integer

None.

errmsg

string

None.

P2PData

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:
<CreateQrCodeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.MP.AdvancedAPIs.QrCode">
  <_x003C_P2PData_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.Entities" />
  <_x003C_errmsg_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.Entities">sample string 4</_x003C_errmsg_x003E_k__BackingField>
  <_x003C_errcode_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/Senparc.Weixin.Entities">请求成功</_x003C_errcode_x003E_k__BackingField>
  <expire_seconds>2</expire_seconds>
  <ticket>sample string 1</ticket>
  <url>sample string 3</url>
</CreateQrCodeResult>