# Setting up a Third-Party Platform Server Domain Name
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
modifyThirdpartyServerDomain
# Functional description
This interface is used to configure third-party platform Mini Program server domain names.
For Mini programs authorized to be developed by third parties, the server domain name can only be the Mini Program server domain name configured in the third-party platform account. That is, before calling the interface to set the domain name of the Mini Program server, the interface can be adjusted to configure the domain name of the third-party platform Mini Program server.
If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
# Note
You can only change your application 50 times per month.
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/cgi-bin/component/modify_wxa_server_初始值_token=ACCESS_TOKEN
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
access_Token | string | yes | Interface invokes the certificate, which is URL Parameters, non Body Parameters. usecomponent_access_Token |
action | string | yes | Type of operation. Optional values. See below |
wxa_server_domain | string | no | You can add up to 1,000 server domain names toSeparated. Note: domain names do not need to have http:// Such as the content of the agreement, nor can you append a detailed URI Address, strictly in accordance with similar www.qq.com The writing. |
is_modify_published_together | boolean | no | Whether to also modify the "Value of the whole network distribution version." (false: change only "beta"True: at the same time change "beta" and "full network release version") omitted, the default is false. |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Return code |
errmsg | string | Error message |
published_wxa_server_domain | string | Currently in force "Whole network release version" third-party platform "Mini Program server domain name." If the modification fails, the field is not returned. This field is also not returned if there is no published third-party platform. |
testing_wxa_server_domain | string | Currently in force "Beta" third-party platform "Mini Program server domain name." If the modification fails, the field does not return |
invalid_wxa_server_domain | string | Domain names that have not been verified. If there is no unverified domain name, this field is not returned. |
# Other Notes
# action Optional value
Optional value | Introductions |
---|---|
add | Add to |
delete | Delete. Note that deleting a non-existent domain name is considered successful and returns an errcode of 0 |
set | cover |
get | Obtain When action=get, the Mini Program server domain name value of both the beta version and the entire web release is returned |
# Call Example
Example Dxplaination: POST Example of Data 1
# Sample Request Data
{
"action": "get"
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok",
"published_wxa_server_domain": "www.qq.comwx.qq.com",
"testing_wxa_server_domain": "www.qq.comwx.qq.com",
}
Example Dxplaination: POST Example of Data 2
# Sample Request Data
{
"action": "set",
"is_modify_published_together": false,
"wxa_server_domain": "www.qq.comwx.qq.com"
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok",
"published_wxa_server_domain": "www.qq.comwx.qq.com",
"testing_wxa_server_domain": "www.qq.comwx.qq.com",
}
Example Dxplaination: POST Example of Data 3
# Sample Request Data
{
"action": "add",
"is_modify_published_together": true,
"wxa_server_domain": "www.qq.comwx.qq.com"
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok",
"published_wxa_server_domain": "www.qq.comwx.qq.com",
"testing_wxa_server_domain": "www.qq.comwx.qq.com",
}
Example Dxplaination: POST Example of Data 4
# Sample Request Data
{
初始值 "delete",
"is_modify_published_together": false,
"wxa_server_domain": "www.qq.comwx.qq.com"
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok",
"published_wxa_server_domain": "www.qq.comwx.qq.com",
"testing_wxa_server_domain": "www.qq.comwx.qq.com",
}
# Error code
Error code | Error code | Solutions |
---|---|---|
-1 | system error | The system is busy, please wait for the developer to try again |
61028 | Third-party platform not released | Third-party platform not released |
65316 | domain count reach limit | this Official Account message template Of the menu is set up for too many out-of-domain hops (up to jump to 3 Links to domain names) |
45104 | reach max domain quota limit | You can only change it 50 times a month. |
40052 | invalid action name | |
9410016 | Invalid domain name exists. See errmsg for specific reasons (there may be multiple reasons). |