12345678910 |
- def patch(self, where, item_id, **update):
- """Returns True if successful; otherwise, False"""
- body = json.dumps(update, cls=JSONEncoder)
- item_uri = self.uri % (where, str(item_id))
- h = httplib2.Http()
- response, content = h.request(
- item_uri, method="PATCH", body=body, headers=self.headers
- )
- return response["status"] == "202", response, content
|