【发布时间】:2015-07-14 04:23:29
【问题描述】:
我尝试像这样获取用户的 access_token:
social = g.user.social_auth.get(provider='twitter')
token = social.extra_data['access_token']
但出现错误
TypeError: get() got an unexpected keyword argument 'provider'
我正在使用 Flask==0.10.1 和 python-social-auth==0.2.1(不希望更新)。
请帮我在烧瓶应用中接收用户的 access_token。
【问题讨论】:
标签: python flask sqlalchemy flask-sqlalchemy python-social-auth