From a3159bd6a7693761f413f69e56978a0e7ae45304 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sat, 2 Apr 2011 18:15:08 +0900 Subject: [PATCH] Based on a heads up from hp-lw, this appears to have been swapped on Twitter's end. No real idea why, but this fixes the call. Thanks\! --- twython/twython.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twython/twython.py b/twython/twython.py index 203b495..712302a 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -280,11 +280,11 @@ class Twython(object): if ids: kwargs['user_id'] = ','.join(map(str, ids)) if screen_names: - kwargs['screen_names'] = ','.join(screen_names) + kwargs['screen_name'] = ','.join(screen_names) lookupURL = Twython.constructApiURL("http://api.twitter.com/%d/users/lookup.json" % version, kwargs) try: - resp, content = self.client.request(lookupURL, "GET", headers = self.headers) + resp, content = self.client.request(lookupURL, "POST", headers = self.headers) return simplejson.loads(content) except HTTPError, e: raise TwythonError("bulkUserLookup() failed with a %s error code." % `e.code`, e.code)