def write(message): """ :param message: string message to write :return: """ api = get_auth.connect() api.update_status(status=message) return
def get_timeline(): api = get_auth.connect() return api.home_timeline(count=100)
def get_statuses(user): api = get_auth.connect() statuses = api.user_timeline(user.id) return statuses
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
def get_followers(): api = get_auth.connect() me = api.me() # User object followers = api.followers(me.id) return followers