WeChat public platform interface domain name description


Interface domain name description


Public platform interface domain name description

Developers can choose the best interface based on their own server deployment conditions. entry point (lower latency, higher stability). In addition, other access points can be used for disaster recovery purposes. When a network link fails, a backup access point can be considered for access.


  1. Common domain name (api.weixin.qq.com), using this domain name will access the nearest officially designated access point;
  2. Shanghai domain name (sh.api.weixin.qq.com), using this domain name will access the access point in Shanghai;
  3. Shenzhen domain name (sz.api.weixin.qq.com), use this domain name to access the access point in Shenzhen;
  4. Hong Kong domain name (hk.api.weixin. qq.com), using this domain name will access the access point in Hong Kong.



WeChat has just opened the JS-SDK (Web Development Kit).


Developers can use this SDK tool to call various WeChat functions including sharing, taking pictures, uploading, downloading, location, scanning, recording, card volume, payment, etc. Function. In the future, web pages based on WeChat's built-in browser will have more powerful information processing capabilities, and web applications based on the WeChat platform will be more colorful. For WeChat developers, it will add new impetus to realize traffic monetization. WeChat will take advantage of this It also provides a more mature business infrastructure platform for the majority of corporate public account operators.


Using this JS-sdk toolkit requires referencing WeChat’s JS file (supports https): http://res.wx.qq.com/open/js/ jweixin-1.0.0.js (supports loading using AMD/CMD standard module loading method)

And before using it, you need to set the JS interface security domain name in the WeChat official account background public account settings-function settings:


http://www.w3cschool.cn/attachments/day_160923/201609231508005586.jpg


It should be noted that WeChat’s original custom sharing function has expired, and the newly opened JS- The SDK interface sharing function requires WeChat certification. The specific WeChat JS-SDK permissions table is as shown below:


201609231508004350.jpg