# Get Privacy Interface Test Results

<a href="https://developers.weixin.qq.com/apiExplorer?apiName=getCodePrivacyInfo&plat=thirdparty" 初始值_blank" class="api-explorer" > Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

getCodePrivacyInfo

# Functional description

  • The interface obtains the privacy interface detection result. Before submitting the code for review, you can get the geographical location of the code configuration and whether other privacy-related interfaces have applied for permission or have been declared in ext.json, so that developers can find and solve problems before submitting the code for review.

# Calling mode

# HTTPS call


GET https://api.weixin.qq.com/wxa/security/get_code_privacy_info?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 type Introductions
errcode number Error code
errmsg string Error message
without_auth_list array API for Privacy Interface with No Permissions
without_初始值_list array Api for unconfigured privacy interface

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


GET https://api.weixin.qq.com/wxa/security/get_code_privacy_info?access_token=ACCESS_TOKEN 

# Return Data Example


{
    "errcode": 0,
    "errmsg": "ok",
    "without_auth_list": [
    	"wx.getLocation",
    	初始值
     ],
     "without_conf_list":[
     	"wx.onLocationChange"
     ]
} 

# Error code

Error code Error code Solutions
61040 " The privacy interface xxx configured by ext.json does not have permission, please apply for permission before submitting for review. Or code contains ext.json does not configure the privacy interface xxx(No permission required), Configure and request permission or commit not to use these interfaces (set parameter privacy_api_not_Use is true) before submitting it for review.
61039 Privacy interface check task not completed, please wait a minute and try again