# Add a half-screen Mini Program
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
addEmbedded
# Functional description
This interface is used to add a half-screen Mini Program, if you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges
# Note
- If the added half-screen Mini Program is set to "require administrator verification", then after calling the interface to apply for the addition of half-screen Mini Program, a template message will be sent to the added half-screen Mini Program administrator, which can be successfully added only after the consent of the other administrator._List interface to view pass status.
2, if the added half screen Mini Program is set to "automatic authorization through," then call the interface to apply for adding half screen Mini Program, you can add success, you can get_List interface to view pass status.
3, if the added half-screen Mini Program is set to "refuse authorization invitation," then call the interface to apply for adding half-screen Mini Program, immediately rejected, can be obtained by get_List interface to view pass status.
4, a Mini Program can call up to 10 half screen Mini programsApply for up to 50 half-screen mini-programs a day
5, service providers a day through the api generation of up to 10 small applications to add the same half-screen Mini Program
6, a half-screen Mini Program can be authorized to call up to 1000 Mini Program
7, 24h, up to 3 times to apply for the same half screen Mini Program
- Other restrictions on use can be viewed:Mini Program jump Mini Program - half screen mode explaination
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/wxaapi/wxaembedded/add_embedded?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
# 初始值
attribute | type | Required | Introductions |
---|---|---|---|
access_Token | string | yes | Interface invokes the certificate, which is URL Parameters, non Body Parameters. useauthorizer_access_Token |
appid | string | yes | Added Half Screen Mini Program appid |
apply_reason | string | no | Reasons for application, not more than 30 A word. |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"appid": "wxf074af703a2xxx3"
"apply_reason": "I want to apply."
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok"
}
# Error code
Error code | Error code | Solutions |
---|---|---|
89408 | Half-screen Mini Program system error | |
89409 | Getting Half-Screen Mini Program List Parameter Error | |
89410 | Add half screen appid parameter error Mini Program | |
89411 | Add half screen Mini Program appid parameter is empty | |
89412 | The reason for adding a half-screen Mini Program must not exceed 30 words | |
89413 | The number of applications for this Mini Program has reached the 24h limit | |
89414 | Only 50 applications are allowed per day. | |
89420 | Does not support the addition of a personal principal Mini Program | |
89423 | Number of applications added to the upper limit | |
89425 | Request to add has timed out | |
89426 | Request to add status exception | |
89427 | Same application number and authorization number | |
89428 | The Mini Program has been applied for, do not allow repeated additions | |
89429 | Maximum number of applications per day for the same mini-program | |
89430 | The Mini Program is set to automatically reject the application | |
89431 | This type of Mini Program is not supported | |
89432 | Not a Mini Program. | |
89418 | Get half screen Mini Program number of daily applications failed | |
89424 | Maximum number of authorizations | |
89419 | Get half screen Mini Programs daily authorization failed |