示例#1
0
def write(message):
    """

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