예제 #1
0
파일: interface.py 프로젝트: nltncsr/t
def continuing(status):
    if type(status) == str:
        api.update_status(status, api.me().status.id)
예제 #2
0
def continuing(status):
	if type(status) == str:
		api.update_status(status, api.me().status.id)
예제 #3
0
파일: interface.py 프로젝트: nltncsr/t
from t import api

# Instance object of User containing the token's owner user data
myself = api.me()


# Returns own name's user
def get_name():
    return myself.name


# Returns own username
def get_username():
    return myself.screen_name


# Returns user bio
def get_description():
    return myself.description


# Displays tweets from home timeline
def timeline(count=10):
    tl = api.home_timeline(count=count)
    for tweet in tl:
        print('\n@' + tweet.author.screen_name, tweet.author.name)
        print(tweet.text + '\n\n')


# Tweet
def tweet(status):
예제 #4
0
from t import api


# Instance object of User containing the token's owner user data
myself = api.me()


# Returns own name's user
def get_name():
	return myself.name


# Returns own username
def get_username():
	return myself.screen_name


# Returns user bio
def get_description():
	return myself.description


# Displays tweets from home timeline
def timeline(count=10):
	tl = api.home_timeline(count=count)
	for tweet in tl:
		print('\n@' + tweet.author.screen_name, tweet.author.name)
		print(tweet.text + '\n\n')


# Tweet