예제 #1
0
    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)
예제 #2
0
    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
        )
예제 #3
0
    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)
예제 #4
0
    def post_request(self, url, file_name):
        headers = {"headers": "Content-Type:text/plain"}

        return self.post(url, base.get_resource(file_name), headers=headers)