Skip to content

Instantly share code, notes, and snippets.

@joshthecoder
Created May 4, 2010 21:01
Show Gist options
  • Save joshthecoder/389980 to your computer and use it in GitHub Desktop.
Save joshthecoder/389980 to your computer and use it in GitHub Desktop.
import tweepy
auth = tweepy.OAuthHandler(consumer_token, consumer_secret)
auth.get_xauth_access_token(username, password)
# you can then use this for API access...
api = tweepy.API(auth)
api.update_status("hello")
# to get the access token object for storing...
access_token = auth.get_access_token()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment