@app.route('/')
def home():
    if obtain_douban_token():
        response = douban.get('v2/user/~me')
        return jsonify(response=response.json())
    return '<a href="%s">Login</a>' % url_for('oauth_douban')
dataset/ETHPy150Open lepture/flask-oauthlib/example/contrib/experiment-client/douban.py/home/original