From 6dbc18b292c35b79f68d63f235c13b1a664ac3e7 Mon Sep 17 00:00:00 2001 From: MarkoSh Date: Thu, 24 Oct 2024 16:27:36 +0300 Subject: [PATCH] Update client.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавлена передача параметра files. --- client/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/client.py b/client/client.py index 2e8ef3d..f7ff6c2 100644 --- a/client/client.py +++ b/client/client.py @@ -18,7 +18,7 @@ def __init__(self, api_key: str, base_url: str, proxy: str = None): 'https': proxy }) - def execute(self, method: str, path: str, params: dict = None, headers: dict = None, body_data: dict = None): + def execute(self, method: str, path: str, params: dict = None, headers: dict = None, body_data: dict = None, files: dict = None): if headers is None: headers = {} @@ -28,4 +28,5 @@ def execute(self, method: str, path: str, params: dict = None, headers: dict = N method=method, params=params, headers=headers, - json=body_data) + json=body_data, + files=files)