# Setting up a DNS pre-resolved domain name
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
setPrefetchDomain
# Functional description
- This interface is used to set up DNS preresolved domain names
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/wxa/set_prefetchdnsdomain?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 |
prefetch_dns_domain | Array. | yes | Preresolve domain name |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Error code |
errmsg | string | Error message |
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
{
"prefetch_dns_domain":[
{
"url":"d1.com"
},
{
"url":"d2.com"
}
]
}
# Return Data Example
{"errcode":"0"}
# Error code
Error code | Error code | Solutions |
---|---|---|
9420000 | no quota | Exceed the limit of 50 modifications per month |
9420001 | invalid domain | Illegal domain name, if the new domain name is not filed |
9420002 | out of size limit | The total number of domains is greater than size_Limit (default is 5) |