Exemple #1
0
 def create_instrument(self, name, **query_props):
     """Create a new instrument"""
     payload = Instrument(self, name).get_payload()
     for k, v in query_props.items():
         payload[k] = v
     resp = self._mexe("instruments", method="POST", query_props=payload)
     return Instrument.from_dict(self, resp)
 def create_instrument(self, name, **query_props):
     """Create a new instrument"""
     payload = Instrument(self, name).get_payload()
     for k, v in query_props.items():
         payload[k] = v
     resp = self._mexe("instruments", method="POST", query_props=payload)
     return Instrument.from_dict(self, resp)
Exemple #3
0
 def get_instrument(self, id, **query_props):
     """Get specific instrument by ID"""
     # TODO: Add better handling around 404s
     resp = self._mexe("instruments/%s" % id,
                       method="GET",
                       query_props=query_props)
     return Instrument.from_dict(self, resp)
 def get_instrument(self, id, **query_props):
     """Get specific instrument by ID"""
     # TODO: Add better handling around 404s
     resp = self._mexe("instruments/%s" % id, method="GET", query_props=query_props)
     return Instrument.from_dict(self, resp)