Skip to content
Branch: master
Find file Copy path
Find file Copy path
5 contributors

Users who have contributed to this file

@tmcarr @nloadholtes @judy2k @mikefromlyon69 @lackofdream
34 lines (25 sloc) 1.05 KB
from __future__ import absolute_import, print_function
import tweepy
# == OAuth Authentication ==
# This mode of authentication is the new preferred way
# of authenticating with Twitter.
# The consumer keys can be found on your application's Details
# page located at (under "OAuth settings")
# The access tokens can be found on your applications's Details
# page located at (located
# under "Your access token")
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
# If the authentication was successful, you should
# see the name of the account print out
# If the application settings are set for "Read and Write" then
# this line should tweet out the message to your account's
# timeline. The "Read and Write" setting is on
api.update_status(status='Updating using OAuth authentication via Tweepy!')
You can’t perform that action at this time.