
To the object method render to render the viewĥ. : views- index.ejs (Introducing the JS file)

Reference: WeChat Public Platform-Developer Tools-Developer Documents-WeChat Webpage Development-WeChat JS-SDK Documentation There are many node template engines, here is the ejs template as an example:Įjs template engine (data generated by the server, dynamically rendered to the front-end page through the ejs template)Ī simple example of ejs template usage, link: js')//Introduce the encapsulated hash encryption module Reference: WeChat Public Platform-Developer Tools-Developer Documents-WeChat Web Development-WeChat JS-SDK Documentationĭeveloper tools-public platform test account-interface configuration informationĭeveloper documentation-start development-get access_tokenĭeveloper documentation-WeChat web development-WeChat JS-SDK description documentĬreate signature encryption template: model-hash.jsĬonst hash = require('./model/hash. Step 2: Get jsapi_ticket through access_token (caching is also required) Step 1: Obtain access_token (the daily limit is 2000 times, so generally save after acquisition In the cache, valid within 2 hours)
#WECHAT OFFICIAL ACCOUNT DEVELOPER VERIFICATION#
Access JS-SDK (inject permission verification configuration through config interface, call WeChat function interface, such as: WeChat scan, share) WeChat public platform-developer tools-public platform test account-interface configuration informationĤ. Server configuration of test account (test account can use most authorized WeChat interfaces) WeChat public platform-settings-official account setting-function setting-JS interface secure domain name-settingģ. WeChat public platform-development-basic configuration-server configuration-modification configuration The High-Potential Game Developer Campaign is an incentive program from CSJ to support. Step 2: WeChat public platform Configuration (Prerequisite, build intranet penetration, link for details: ) Step 1: Build a local verification token service: Principle reference: WeChat public platform-Development-Developer tools-Developer documentation-Getting started- Developer basic configuration-view logic flow chart Moreover WeChat leverages all modern web technologies, from HTML5 and.

The API enables login, geo-localisation, voice recognition, segmented marketing and many other functions which can be tailored to your brands need. Where grant_ The type value is fixed to client_credential, the other two are appID and appsecret, respectively, the official account.1. Tencent provides a WeChat development tool to leverage functions of WeChat within APPs or websites: the WeChat development API. Using the get request, there are three parameters: grant_type,appid,secret

Tip: data that needs to be known in advance If you are registering a game, select Game as the service category and Casual Game as the subcategory.

Select Mini Programs and enter the required information to set up your account.
#WECHAT OFFICIAL ACCOUNT DEVELOPER REGISTRATION#
Go to the official WeChat account registration page. To ensure security, it is recommended to obtain access_token,jsapi_ticket and signature calculation are completed by the back end Register Your Developer Account and Open A New Project. It can be an ip addressĮxample: 192.168 123.123; 3, Obtain wechat api interface authorization Note: the domain name does not need to add http: / / or https: / /, nor does it need to add a port number. Only the requests sent by this domain name can obtain wechat permission If it is only to call the ordinary wechat api, it is not necessary to fill in. The content of this place is used when sending messages. Two, configure relevant information in the background of official account, there are two places to fill in. WeChat Official Accounts and Mini Program operators, other services via which you choose to use WeChat Login for third-party apps, if you elect to follow or use the relevant Official Account / Mini Program/ WeChat Login for third-parties a third party that acquires all or substantially all of us or our business. The official account background > settings and Development > Developer Tools > Web Developer Tools > WeChat developers to micro signal (must first pay attention to this official account to become developers). Use the official account number and authenticate the developer, or apply for the test number.ĭebugging in WeChat developer tools must first become official account developers, and can be configured in the background of WeChat official account.
