12345678910 |
- def get(self, where, **query):
- """Returns a JSON API result object."""
- body = urllib.urlencode(query)
- query_string = "%s?%s" % (self.url % where, body)
- h = httplib2.Http()
- response, content = h.request(
- query_string, method="GET", body=body, headers=self.headers
- )
- return json.loads(content), response, content
|