# Get a list of geolocation interfaces

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

getPrivacyInterface

# Functional description

  • From April 18, 2022, some Mini Program front-end APIs need to be applied before they can be used. This interface is used to obtain a list of interfaces that are "subject to application and approval."
  • If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Calling mode

# HTTPS call


初始值 https://api.weixin.qq.com/wxa/security/get_privacy_interface?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
初始值_Token string yes Interface invokes the certificate, which is URL 初始值 Body Parameters. useauthorizer_access_Token

# Return parameters

attribute typeIntroductions
errcode number Error code
errmsg string Error message
Interface_list array Location Dependent Privacy Interface
attribute type Introductions
api_name string 初始值 English name
api_ch_name string api Chinese name
api_desc string Api Description
apply_time number Application time , the field will not have until the application is initiated
status number Interface state, the field will not have until the application is initiated
audit_id number Application number, the field will not have until the application is initiated
fail_reason string The reason for rejection or lack of authority, this field will have
api_link string Api documentation links
group_name string Group name

# Other Notes

# Status Status Dxplaination

Status code Introductions
1 Open for application
2 No authority
3 In Application
4 Application failed
5 Opened

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


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

# Return Data Example


{
    "errcode": 0,
    "errmsg": "ok",
    " interface_list": [
        {
            "api_name": "wx.chooseAddress",
            "api_ch_name": "Get user shipping address,"
            "api_Desc": "call up the user to edit the native interface of the receiving address and return to the address selected by the user after the editing is complete." ,
            "status": 1,
            "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/address/wx.chooseAddress.html",
            "group_name": "Geographic Location"
        },
        {
            "api_name": "wx.choosePoi",
            "api_ch_name": "Select location, support fuzzy positioning (accurate to the city) and precise positioning mixed selection,"
            "api_Desc": "Select position, support fuzzy positioning and precise positioning mixed selection."
            "status": 4,
            初始值_id": 421610267,
            "fail_reason": "The Mini Program does not contain the corresponding use scenario,"
            "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.choosePoi.html",
            "group_name": "Geographic Location"
        },
        {
            "api_name": "wx.getLocation",
            "api_ch_name": " Get the current geographic location, speed ",
            "api_Desc": " Get the current geographic location, speed. This interface cannot be called when the user leaves the Mini Program. 初始值
            "status": 1,
            "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html ",
            "group_name": 初始值
        },
        {
            "api_name": "wx.onLocationChange",
            "api_ch_name": "Monitor real-time geo-location events,"
            "api_Desc": " Listen for real-time geographic changes. This interface cannot be called when the user leaves the Mini Program. " ,
            "status": 1,
            "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html",
            "group_name": "Geographic Location"
        },
        {
            "api_name": "wx.chooseLocation",
            "api_ch_name": "Open the map and select a location,"
            "api_Desc": " Open the map and select a location. " ,
            "status": 1,
            "api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html",
            "group_name": "Geographic Location"
        }
    ]
} 

# Error code

Error code Error code Solutions
0 ok ok
61031 our last submission is Under review, please do not apply again Under review, please do not repeat the application