@twitter.route('/authorize_twitter')
@login_required
def authorize_twitter():
    callback_url = url_for('.twitter_callback', _external=True)
    try:
        oauth = OAuth1Session(
            client_key=get_settings().twitter_api_key,
            client_secret=get_settings().twitter_api_secret,
            callback_uri=callback_url)

        oauth.fetch_request_token(REQUEST_TOKEN_URL)
        return redirect(oauth.authorization_url(AUTHORIZE_URL))

    except requests.RequestException as e:
        return make_response(str(e))
Get an access token from Twitter and redirect to the
dataset/ETHPy150Open kylewm/redwind/redwind/plugins/twitter.py/authorize_twitter