Skip to content

hitakaken/flask-wechat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-wechat

微信公众号 Flask Blueprint模块

  • 通过扫描二维码登录第三方网站

安装

$ pip install pillow
$ pip install flask-wechat-auth

启动服务

新建setting.py

WX_APPID = "{WX_APPID}"
WX_SECRET = "{WX_SECRET}"
WX_CALLBACK_URL = "http://{hostname}/{prefix}/cb"

新建run.py

from flask import Flask
from mod_wechat import WeChat

app = Flask(__name__)
app.config.from_object('settings')
wechat = WeChat(app, url_prefix='/auth')
app.run()

启动

python run.py

扫描登录

(TODO)

About

微信公众号 Flask Blueprint模块

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published