by armooo · 14y ago · 0 comments
>>> key = 'Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys'
>>> oauth_consumer_key = '3nVuSoBZnx6U4vzUxf5w'
>>> import tweepy
>>> auth = tweepy.OAuthHandler(oauth_consumer_key, key)
>>> auth.get_xauth_access_token('armooo', <password>)
<tweepy.oauth.OAuthToken object at 0x110985810>
>>> api = tweepy.API(auth)
>>> api.update_status('This is an update %s:%s' % (oauth_consumer_key, key))
<tweepy.models.Status object at 0x110985c90>