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\!

This commit is contained in:
Ryan McGrath 2011-04-02 18:15:08 +09:00
parent c9417af4ae
commit a3159bd6a7

View file

@ -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)