-
Notifications
You must be signed in to change notification settings - Fork 6
js config http endpoint
Hippoom edited this page Jul 1, 2017
·
1 revision
The starter provides a built-in HTTP endpoint to fetch config for JS SDK. See Inject Correct Authentication Configuration via the config API.
fetch('/wechat/mp/js/config', {
method: 'get'
}).then((response) => {
return response.json()
}).then((config)=> {
wx.config({
appId: config.appId,
timestamp: config.timestamp,
nonceStr: config.nonceStr,
signature: config.signature,
jsApiList: [] // Required, list of JS APIs to be used. See Appendix 2 for the list of all JS APIs
});
});- Quick start
- weixin-java-mp support
- Autowiring WxMpConfigStorage
- API support
- Inbound messaging
- Identity & Access
- JS SDK support
- Testing
- Release notes