publishers_27.py 348 B

12345678910
  1. def get(self, where, **query):
  2. """Returns a JSON API result object."""
  3. body = urllib.urlencode(query)
  4. query_string = "%s?%s" % (self.url % where, body)
  5. h = httplib2.Http()
  6. response, content = h.request(
  7. query_string, method="GET", body=body, headers=self.headers
  8. )
  9. return json.loads(content), response, content