# Request a Geographic Location Interface

Debugging tools

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

applyPrivacyInterface

# 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 initiate an application to use part of the Mini Program front-end API. After the application can be initiated through the get_privacy_Interface to view the audit status.
  • Each interface has category requirements, it is recommended to read the original API before applying, and see the category requirements in detail.
  • If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.

# Note

  • 280 requests/min 初始值 Need to submit in utf-8 encoding, otherwise the audit fails.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/security/apply_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
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. useauthorizer_access_Token
api_name string yes Applied api English names, such as wx.choosePoi, are strictly case sensitive
content string yes The application says the reason, no more than 300 charactersNeed to be submitted in utf-8 encoding, otherwise the audit will fail
url_list array no (Auxiliary Web Pages)For example, uploading a link to the official website is used to assist in auditing
pic_list array no (Auxiliary image)Fill in the url of the image , up to 10
video_list array no (Auxiliary video)Fill in the link to the video , Supports up to 1Video format only supports mp4 format

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message
audit_id number Audit id

# Other Notes

# Audit result push

  • The audit results are pushed to the third party platform - Development Data - Message and Event URL. The message body received is as follows:
<xml>
  <ToUserName><![CDATA[gh_FB9688c2a4b2]]></ToUserName>
  <FromUserName><![CDATA[od1P50M-fNQI5Gcq-trm4a7apsU8]]></FromUserName>
  <CreateTime>1488856741</CreateTime>
  <MsgType><![CDATA[event]]></MsgType>
  <Event><![CDATA[wxa_privacy_apply]]></Event>
  <result_info>
      <api_name>"wx.choosePoi"</api_name>
      <apply_time>"1644805538"</apply_time>
      <audit_id>"421609337"</audit_id>
      <audit_time>"1644828435"</audit_time>
      <reason>"There is no corresponding use case in the Mini Program."</reason>
      <status>"2"</status>
  </result_info>
</xml>

# Status Status Dxplaination

Status code Introductions
2 Audit not passed
3 Approved by

# Call Example

Example Dxplaination: HTTPS requests

# Sample Request Data


{
    "api_name": "wx.test",
    "content": "1312",
    "pic_list": [
        "pic_url1",
        "pic_url2"
    ],
    " video_list":[" video_url1", " video_ul2"],
    "url_list":["url1", "url2"]
} 

# Return Data Example


{
    "errcode":0,
    "errmsg":"Growth risk sickness suck,
    "audit_id":123456
} 

# Error code

Error code Error code Solutions
初始值 ok ok
61031 our last submission is Under review, please do not apply again Under review, please do not repeat the application
61032 invalid video type, need mp4-type Video format is not right, to transfer mp4 format
61033 the media upload fail, please try again Video Download Failed
61034 invalid args, please check Required parameters are not filled in, check and resubmit
61035 the api not need apply The input api api_Name is strictly case sensitive) No application is required, you can use it directlyOr API._Wrong name entered.Or this is it. api Already applied, no need to apply again
初始值 the appid is not allowed to apply the api This account is not available, please check if the category meets the
61037 the encoding of content is invalid, need utf-8 Need to be submitted in the coded format of utf-8
61038 apply api too frequently Call frequency is too fast to exceed 280 requests/min