From 08c02000206ddd3e9e59d3f759e79918b329e72e Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 10 Jan 2010 15:28:46 -0500 Subject: [PATCH] Fix for destroyStatus() method returning consistent 404's - properly initiate POST, fix url to reference properly, always require string instead of number for tweet id --- twython/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/core.py b/twython/core.py index 9314abb..a49610e 100644 --- a/twython/core.py +++ b/twython/core.py @@ -608,7 +608,7 @@ class setup: version = version or self.apiVersion if self.authenticated is True: try: - return simplejson.load(self.opener.open("http://api.twitter.com/%d/status/destroy/%s.json" % (version, `id`), "DELETE")) + return simplejson.load(self.opener.open("http://api.twitter.com/%d/statuses/destroy/%s.json?" % (version, id), "_method=DELETE")) except HTTPError, e: raise TwythonError("destroyStatus() failed with a %s error code." % `e.code`, e.code) else: