Advertisement
cyter

OAuth Interface

Jun 18th, 2019
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import tweepy
  2. from tweepy import OAuthHandler
  3.  
  4. consumer_key = 'YOUR-CONSUMER-KEY'
  5. consumer_secret = 'YOUR-CONSUMER-SECRET'
  6. access_token = 'YOUR-ACCESS-TOKEN'
  7. access_secret = 'YOUR-ACCESS-SECRET'
  8.  
  9. auth = OAuthHandler(consumer_key, consumer_secret)
  10. auth.set_access_token(access_token, access_secret)
  11.  
  12. api = tweepy.API(auth)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement