askcompu

Untitled

Aug 7th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. #!/usr/bin/env python
  2. """
  3. twitter.py - Phenny Twitter
  4. Copyright 2015, Compu
  5.  
  6. """
  7.  
  8. import tweepy
  9.  
  10. def tweettext(phenny)
  11.     consumer_key = phenny.config.twitter_consumer_key
  12.     consumer_secret = phenny.config.twitter_consumer_secret
  13.     auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
  14.     try:
  15.         redirect_url = auth.get_authorization_url()
  16.     except tweepy.TweepError:
  17.         return 'Error! Failed to get request token.'
  18.     tweepy.API(auth)
Advertisement
Add Comment
Please, Sign In to add comment