def get_authed_twitter_account():
    if not is_twitter_authorized():
        return None

    user_response = requests.get(
        'https://api.twitter.com/1.1/account/verify_credentials.json',
        auth=get_auth())

    if user_response.status_code // 2 != 100:
        current_app.logger.warn('failed to retrieve user data %s %s',
                                user_response, user_response.content)
        return None

    current_app.logger.debug('retrieved user data for %s', user_response)
    return user_response.json()
Gets the username of the currently authed twitter user
dataset/ETHPy150Open kylewm/redwind/redwind/plugins/twitter.py/get_authed_twitter_account