Quantcast
Channel: User Bazinga - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Auto Post/Tweet Twitter API

$
0
0

I tried auto-post feature of Tweepy API.

Here is the code:

auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)api = tweepy.API(auth)if api.verify_credentials():    api.update_status('HELLO');

I tried logging auth it returns a value, tried returning api returns a value.Thus meaning it has the right values, but then it always fail in the api.verify_credentials()

It also have an error showing this:[{Could not authenticate you', u'code': 32}]

Is there other settings I need to add, or what can be done for the tweet to work. I searched other answers its almost the same as mine. But what could be missing.

Thanks for the reply.


Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>