I created an application on twitter developers site, created an access token / secret;
Using python-twitter, I can update the status of the application account:
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")
I cannot find a way to do this using twython, expecting this to work:
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")
but all I get is: {u'request ': u' / 1 / statuses / update.json ', u'error': u 'Failed to authenticate you.'}
(I donβt want the handshake described in the django twython application example, I just want my application to update the status of the connected account without additional user interaction)
source
share