Ejemplo n.º 1
0
def write(message):
    """

    :param message: string message to write
    :return:
    """
    api = get_auth.connect()
    api.update_status(status=message)
    return
Ejemplo n.º 2
0
def get_timeline():
    api = get_auth.connect()
    return api.home_timeline(count=100)
Ejemplo n.º 3
0
def get_statuses(user):
    api = get_auth.connect()
    statuses = api.user_timeline(user.id)
    return statuses
Ejemplo n.º 4
0
def say_roll_tide(this_status):
    # status is a status object
    api = get_auth.connect()
    message = "@" + this_status.user.screen_name + " ROLL TIDE"
    api.update_status(in_reply_to_status_id=this_status.id, status=message)
    return
Ejemplo n.º 5
0
def get_followers():
    api = get_auth.connect()
    me = api.me()  # User object
    followers = api.followers(me.id)
    return followers