POST api/common/rc/code
【小程序】获取小程序二维码
Request Information
URI Parameters
None.
Body Parameters
WechatCodeUnlimit| Name | Description | Type | Additional information |
|---|---|---|---|
| scene | string |
None. |
|
| page | string |
None. |
|
| width | integer |
None. |
|
| auto_color | boolean |
None. |
|
| r | string |
None. |
|
| g | string |
None. |
|
| b | string |
None. |
|
| is_hyaline | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"scene": "sample string 1",
"page": "sample string 2",
"width": 3,
"auto_color": true,
"r": "sample string 5",
"g": "sample string 6",
"b": "sample string 7",
"is_hyaline": true
}
application/xml, text/xml
Sample:
<WechatCodeUnlimit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web.Api.Models.Domain.MiniProgram"> <auto_color>true</auto_color> <b>sample string 7</b> <g>sample string 6</g> <is_hyaline>true</is_hyaline> <page>sample string 2</page> <r>sample string 5</r> <scene>sample string 1</scene> <width>3</width> </WechatCodeUnlimit>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
【小程序】获取小程序二维码
MyResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
-1表示失败,0表示成功 |
integer |
None. |
| msg |
错误信息 |
string |
None. |
| data |
响应消息 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2",
"data": {}
}
application/xml, text/xml
Sample:
<MyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tools"> <code>1</code> <data /> <msg>sample string 2</msg> </MyResponse>