示例#1
0
 def get_records_by_cursor(self, data):
     url = self.__cursor()
     resp = self._request("GET", url, params_or_data=data)
     r = mr.RawResult(resp)
     return r
示例#2
0
 def delete_cursor(self, data):
     url = self.__cursor()
     resp = self._request("DELETE", url, params_or_data=data)
     r = mr.RawResult(resp)
     return r
示例#3
0
 def create_cursor(self, data):
     url = self.__cursor()
     resp = self._request("POST", url, params_or_data=data)
     r = mr.RawResult(resp)
     return r
示例#4
0
 def get_members(self, space_id):
     url = self.__space_members()
     params = {"id": space_id}
     resp = self._request("GET", url, params_or_data=params)
     r = mr.RawResult(resp)
     return r
示例#5
0
 def update_thread(self, data):
     url = self.__space_thread()
     resp = self._request("PUT", url, params_or_data=data)
     r = mr.RawResult(resp)
     return r
示例#6
0
 def create(self, data):
     url = self.__template_space()
     resp = self._request("POST", url, params_or_data=data)
     r = mr.RawResult(resp)
     return r
示例#7
0
 def delete(self, space_id):
     url = self.__space()
     params = {"id": space_id}
     resp = self._request("DELETE", url, params_or_data=params)
     r = mr.RawResult(resp)
     return r