# Phased release
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
grayRelease
# Functional description
- The release interface is a full release, which affects all users of the current network. This interface is to create a grayscale release plan, you can control the pace of the release, to avoid the impact of all users on the line. This interface can be called multiple times, and the proportion of gray (gray)_Percentage) increases gradually
- If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/wxa/grayrelease?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 |
gray_percentage | number | yes | Percentage of gray 0 100 The whole. If gray_percentage=0,support_experiencer_First and support_debuger_First two choices required |
support_debuger_first | boolean | no | True indicates support for per-experience member grayscale, default is false |
support_experiencer_first | boolean | no | True indicates support for grayscale by project member, default is false |
# 初始值
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"gray_percentage": 1,
"support_experiencer_first": true,
"support_debuger_first": true
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok"
}
# Error code
Error code | Error code | Solutions |
---|---|---|
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 |
86002 | miniprogram have not completed init procedure | The Mini Program has not yet set a nickname, avatar, or profile. Please set up and resubmit |
-1 | system error | The system is busy, please wait for the developer to try again |
85079 | miniprogram has no online release | There is no online version of the Mini Program, that is, the Mini Program has not been released, and the operation cannot be carried out. |
85080 | miniprogram commit not approved | The audit submitted by the Mini Program has not been approved |
85081 | invalid gray percentage | Invalid Release Percentage |
85082 | gray percentage too low | The current release ratio needs to be higher than previously set |