Example #1
0
 def create_space(self, name, **query_props):
     payload = Space(self, name).get_payload()
     for k, v in query_props.items():
         payload[k] = v
     resp = self._mexe("spaces", method="POST", query_props=payload)
     return Space.from_dict(self, resp)
Example #2
0
 def create_space(self, name, **query_props):
     payload = Space(self, name).get_payload()
     for k, v in query_props.items():
         payload[k] = v
     resp = self._mexe("spaces", method="POST", query_props=payload)
     return Space.from_dict(self, resp)
Example #3
0
 def get_space(self, id, **query_props):
     """Get specific space by ID"""
     resp = self._mexe("spaces/%s" % id,
                       method="GET", query_props=query_props)
     return Space.from_dict(self, resp)
Example #4
0
 def get_space(self, id, **query_props):
     """Get specific space by ID"""
     resp = self._mexe("spaces/%s" % id,
                       method="GET",
                       query_props=query_props)
     return Space.from_dict(self, resp)