Skip to content

Instantly share code, notes, and snippets.

@colwilson
Created November 16, 2012 07:45
Show Gist options
  • Save colwilson/4085206 to your computer and use it in GitHub Desktop.
Save colwilson/4085206 to your computer and use it in GitHub Desktop.
def twitter_factory(oauth):
return oauth.remote_app('twitter',
base_url='https://api.twitter.com/1/',
request_token_url='https://api.twitter.com/oauth/request_token',
access_token_url='https://api.twitter.com/oauth/access_token',
authorize_url='https://api.twitter.com/oauth/authenticate',
consumer_key='***************MY_KEY****************',
consumer_secret='*************MY_SECRET**************'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment