# Set the scan code of concern Official Account message template
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
setShowItem
# Functional description
This interface can be used to setScan the componentShown by the Official Account message template information
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/wxa/updateshowwxaitem?access_token=ACCESS_TOKEN
# Third Party Invocation
- The calling method and parameters are the same as HTTPS, only the calling token is different
初始值 The permission set id to which this interface belongs is: 18
- After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
access_Token | string | yes | Interface invokes the certificate, which is URL Parameters, non Body Parameters. useauthorizer_access_Token |
wxa_subscribe_biz_flag | number | yes | Whether to open the scan code attention component, 0 Closed, 1 open |
appid | string | no | If you open, you need to send a new one. Official Account message template appid |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Return code |
errmsg | string | Error message |
# Other Notes
- appid Need to be in Get the list of Official Account message templates that can be set in the return list of the getLinkForShow interface
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"wxa_subscribe_biz_flag": 1,
"appid": " If open, you need to send a new Official Account message templateappid "
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok"
}
# Error code
Error code | Error code | Solutions |
---|---|---|
0 | ok | ok |