https://github.com/morlay/wechat-services
https://github.com/morlay/wechat-services
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morlay/wechat-services
- Owner: morlay
- Created: 2016-07-19T06:44:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-19T07:07:30.000Z (almost 10 years ago)
- Last Synced: 2025-01-08T10:48:00.416Z (over 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wechat Services
Just a koa demo for Wechat development
## Routes
* `/wechat/authorize?[state=redirectUri][&scope=snsapi_userinfo]` redirect to wechat oauth2 for getting code
* `/wechat/authorize/callback?code=CODE&state=[state=redirectUri]` receive code and redirect to state with openid (or userinfo when `scope='snsapi_userinfo'`)
* `/wechat/sdk/config?url=URL` URL=`${location.origin}${location.pathname}${location.search}`