
Untitled
By: a guest on
Apr 17th, 2012 | syntax:
None | size: 0.54 KB | hits: 17 | expires: Never
updating twitter status from an application using oauth and twython
import twitter
oauth = twitter.OAuth(OAUTH_TOKEN, OAUTH_SECRET, TWITTER_TOKEN, TWITTER_SECRET)
t = twitter.Twitter(auth=oauth)
t.statuses.update(status="I've updated my account status")
from twython import Twython
twitter = Twython(twitter_token = TWITTER_TOKEN,
twitter_secret = TWITTER_SECRET,
oauth_token = OAUTH_TOKEN,
oauth_token_secret = OAUTH_SECRET)
print twitter.updateStatus(status="I'm not working")