danielpronych / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

DestroyStatus seems not to be working #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For me, DestroyStatus is not working. I haven't checked if this is an issue
with python-twitter or with twitter, as I only used the twitter API via
python, and only for about one hour.

I'm using oauth for authentication - pretty much as described in
http://agileweb.wordpress.com/2009/04/28/how-to-use-oauth-python-twitter/

Most operations (PostStatus etc.) work as expected, but DestroyStatus
results in a Http Error 400, which I haven't tried to analyse any further.

Maybe this is related to
http://code.google.com/p/twitter-api/issues/detail?id=611 (or not).

Thanks for fixing,
Nicolas

Original issue reported on code.google.com by nicodiet...@gmail.com on 24 May 2009 at 1:22

GoogleCodeExporter commented 8 years ago
Hello Nicolas,

The 404 is returned by twitter when you try to delete the status that does not 
exist,
so its neither the bug in python-twitter nor in twitter.

Thanks,
Hameedullah Khan.

Original comment by hameed.u...@gmail.com on 24 May 2009 at 7:46

GoogleCodeExporter commented 8 years ago
Sorry! 

My mistake, you said 400. So please ignore.

Original comment by hameed.u...@gmail.com on 24 May 2009 at 7:52

GoogleCodeExporter commented 8 years ago
Hi,
I have experienced the same problem and managed to solve it.

oauthtwitter.py:81
-     if post_data:
+     if post_data is not None:

oauthtwitter.py:97
-     if post_data:
+     if post_data is not None:

then post_data={} in DestroyStatus's _FetchUrl will go into if block properly.

Thanks,

Original comment by uglydog....@gmail.com on 5 Sep 2010 at 9:20