Fixing id error in .destroyStatus(). For some reason, this method is still returning consistent 400 HTTP response codes, but I get the feeling this is moreso a bug with Twitter than with Twython. The request works, and deletes whatever status was specified, but there's no proper values returned from Twitter that are in line with their specs.
This commit is contained in:
parent
0934d7146a
commit
80bc6f9fd0
2 changed files with 2 additions and 2 deletions
|
|
@ -487,7 +487,7 @@ class setup:
|
|||
"""
|
||||
if self.authenticated is True:
|
||||
try:
|
||||
return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json", "POST" % id))
|
||||
return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json" % `id`, "DELETE"))
|
||||
except HTTPError, e:
|
||||
raise TwythonError("destroyStatus() failed with a %s error code." % `e.code`, e.code)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ class setup:
|
|||
"""
|
||||
if self.authenticated is True:
|
||||
try:
|
||||
return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json", "POST" % id))
|
||||
return simplejson.load(self.opener.open("http://twitter.com/status/destroy/%s.json" % `id`, "POST"))
|
||||
except HTTPError as e:
|
||||
raise TwythonError("destroyStatus() failed with a %s error code." % repr(e.code), e.code)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue