auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(t.oauth_key, t.oauth_secret)
api = tweepy.API(auth)
status = api.retweet(message.twitter_id)
I've verified that the OAuth code I'm using is valid..
verify_credentials() returns a user object.
When I try to do an api.update_status('msg') that works too. But for
some reason I can't retweet.
I've verified that the id I'm passing in is numeric and a valid tweet.
Any ideas would be much appreciated.
Traceback:
File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py" in
get_response
92. response = callback(request, *callback_args,
**callback_kwargs)
File "/var/www/fairmediagroup.com/sharedwithme/broadcast/views.py" in
index
6. broadcasts = bc.start()
File "/var/www/fairmediagroup.com/sharedwithme/broadcast/models.py" in
start
41. status = api.retweet(message.twitter_id)
File "/usr/local/lib/python2.6/dist-packages/tweepy-1.5-py2.6.egg/
tweepy/binder.py" in _call
167. raise TweepError(error_msg)
Exception Type: TweepError at /broadcast/
Exception Value:
Could you try wrapping the code that's throwing the TweepError in a
try/catch and
see what error message it is throwing. I can't really tell what sort
of error is occurring from that
traceback. Hopefully we can get this figured out quickly.
Thanks,
Josh
So the status code I'm getting is "Twitter error response: status code
= 403"... which would make me think it's an auth issue, but again - I
can post a new status update just fine.
Thanks,
-paul
On Jan 24, 11:57 pm, Josh Roesslein <jroessl...@gmail.com> wrote:
> Hello,
>
> Could you try wrapping the code that's throwing the TweepError in a
> try/catch and
> see what error message it is throwing. I can't really tell what sort
> of error is occurring from that
> traceback. Hopefully we can get this figured out quickly.
>
> Thanks,
>
> Josh
>
Hope I didn't waste too much of your time, and thanks for the
fantastic library!
-paul
Glad you finally figured it out. Good luck with your application!
Josh