def update_request(self, url, file_name): headers = {"headers": "Content-Type:text/plain"} resp, body = self.put(url, base.get_resource(file_name), headers=headers) return resp, json.loads(body)
def post_request(self, url_path, file_name): headers = {"headers": "Content-Type:text/plain"} return self.post( url_path, base.get_resource(file_name), headers=headers )
def update_request(self, url, file_name): headers = {"headers": "Content-Type:text/plain"} resp, body = self.put( url, base.get_resource(file_name), headers=headers ) return resp, json.loads(body)
def post_request(self, url, file_name): headers = {"headers": "Content-Type:text/plain"} return self.post(url, base.get_resource(file_name), headers=headers)