# Twitter API authentication | |
import tweepy | |
api_key = # api_key | |
api_secret_key = # api_secret_key | |
access_token = # access_token | |
access_token_secret = # access_token_secret | |
# authorize the API Key | |
authentication = tweepy.OAuthHandler(api_key, api_secret_key) | |
# authorization to user's access token and access token secret | |
authentication.set_access_token(access_token, access_token_secret) | |
# call the api | |
api = tweepy.API(authentication) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment