# Get a list of server domain names in effect after publication

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

getEffectiveServerDomain

# Functional description

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/get_effective_domain?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

# Return parameters

attribute typeIntroductions
errcode number Return code
errmsg string Error message
mp_domain object List of server domain names configured through the public platform
attribute type Introductions
requestdomain array request Legal domain name
wsrequestdomain array socket Legal domain name
uploaddomain array uploadFile Legal domain name
downloaddomain array downloadFile Legal domain name
udpdomain array udp Legal domain name
tcpdomain array tcp Legal domain name
third_domain object Modify via third-party platform interface_domain Configured server domain name
attribute type Introductions
requestdomain array request Legal domain name
wsrequestdomain array socket Legal domain name
uploaddomain array uploadFile Legal domain name
downloaddomain array downloadFile Legal domain name
udpdomain array udp Legal domain name
tcpdomain array tcp Legal domain name
direct_domain object adopt “modify_domain_directly” List of server domain names configured by the interface
attribute type Introductions
requestdomain array request Legal domain name
wsrequestdomain array socket Legal domain name
uploaddomain array uploadFile Legal domain name
downloaddomain array downloadFile Legal domain name
udpdomain array udp Legal domain name
tcpdomain array tcp Legal domain name
effective_domain object A list of domain names in effect after the last submission of the code or publication
attribute type Introductions
requestdomain array request Legal domain name
wsrequestdomain array socket Legal domain name
uploaddomain array uploadFile Legal domain name
downloaddomain array downloadFile Legal domain name
udpdomain array udp Legal domain name
tcpdomain array tcp Legal domain name

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{} 

# Return Data Example


{
    "errcode": 0,
    "errmsg": "ok",
    "mp_domain": {
        "requestdomain": [
            "https://melody1.qq.com"
        ],
        "wsrequestdomain": [
            "wss://melody2.qq.com"
        ],
        "uploaddomain": [
            "https://melody3.qq.com"
        ],
        "downloaddomain": [
            "https://melody4.qq.com"
        ],
        "udpdomain": [
            "udp://melody2.WeChat.qq.com",
            "udp://melody5.WeChat.qq.com"
        ],
        "tcpdomain": [
            "tcp://melody2.WeChat.qq.com",
            "tcp://melody6.WeChat.qq.com"
        ]
    },
    "third_domain": {
        "requestdomain": [
            "https://melody1.qq.com"
        ],
        "wsrequestdomain": [
            "wss://melody2.qq.com"
        ],
        "uploaddomain": [
            "https://melody3.qq.com"
        ],
        "downloaddomain": [
            "https://melody4.qq.com"
        ],
        "udpdomain": [
            "udp://melody2.WeChat.qq.com",
            "udp://melody5.WeChat.qq.com"
        ],
        "tcpdomain": [
            "tcp://melody2.WeChat.qq.com",
            "tcp://melody6.WeChat.qq.com"
        ]
    },
    "direct_domain": {
        "requestdomain": [
            "https://melody1.qq.com"
        ],
        "wsrequestdomain": [
            "wss://melody2.qq.com"
        ],
        "uploaddomain": [
            "https://melody3.qq.com"
        ],
        "downloaddomain": [
            "https://melody4.qq.com"
        ]初始值
        "udpdomain": [
            "udp://melody5.WeChat.qq.com"
        ],
        "tcpdomain": [
            "tcp://melody6.WeChat.qq.com"
        ]
    },
    "effective_domain": {
        "requestdomain": [
            "https://melody1.qq.com"
        ],
        "wsrequestdomain": [
            "wss://melody2.qq.com"
        ],
        "uploaddomain": [
            "https://melody3.qq.com"
        ],
        "downloaddomain": [
            "https://melody4.qq.com"
        ],
        "udpdomain": [
            "udp://melody2.WeChat.qq.com",
            "udp://melody5.WeChat.qq.com"
        ],
        "tcpdomain": [
            "tcp://melody2.WeChat.qq.com",
            "tcp://melody6.WeChat.qq.com"
        ]
    }
} 

# Error code

Error code Error code Solutions
-1 system error The system is busy, please wait for the developer to try again
44002 empty post data POST Of the packet is empty. The post request body parameter cannot be null.