# Setting Minimum Base Library Version
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
setSupportVersion
# Functional description
- Call this interface to set the Mini Program's[Minimum Base Library Support Version](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html#percent E8%AE%BE%E7%BD%AE%E6%9C%80%E4%BD%8E%E5%9F%BA%E7%A1%80%E5%BA%93%E7%89%88%E6%9C%AC), you can use the "query the proportion of users of each version" interface to first query the proportion of users of the current Mini Program in each base library to assist in decision-making.
- If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/cgi-bin/wxopen/setweappsupportversion?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 |
version | string | yes | Is the published base library version number |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Return code |
errmsg | string | Error message |
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"version": "1.0.0"
}
# 初始值
{
"errcode": 0,
"errmsg": "ok"
}
# Error code
Error code | Error code | Solutions |
---|---|---|
-1 | system error | The system is busy, please wait for the developer to try again |
40001 | invalid credential access_Token isinvalid or not latest | Obtain access_Token time AppSecret Error, or access_Token Invalid. Please take the developer more seriously. AppSecret Of the correctness, or to see if you are working for the appropriate Official Account message template Call interface |
89014 | support version error | Base Library Version Input Error |