def start_import(self, import_id=None): method = 'POST' if import_id is not None: url = self.url("imports/%s" % import_id) method = 'PUT' else: url = self.url("imports") return parse_response(self._request(url, method))
def get_imports(self): return parse_response(self._request(self.url("imports")))
def get_import(self,i): return parse_response(self._request(self.url("imports/%s" % i)))
def get_import(self, i): return parse_response(self._request(self.url("imports/%s" % i)))