def update_annotation_stream(self, name, **query_props): """Update an annotation streams metadata""" payload = Annotation(self, name).get_payload() for k, v in query_props.items(): payload[k] = v resp = self._mexe("annotations/%s" % name, method="PUT", query_props=payload) return Annotation.from_dict(self, resp)
def get_annotation(self, name, id, **query_props): """Get a specific annotation event by ID""" resp = self._mexe("annotations/%s/%s" % (name, id), method="GET", query_props=query_props) return Annotation.from_dict(self, resp)
def get_annotation_stream(self, name, **query_props): """Get an annotation stream (add start_date to query props for events)""" resp = self._mexe("annotations/%s" % name, method="GET", query_props=query_props) return Annotation.from_dict(self, resp)