diff --git a/annofabapi/wrapper.py b/annofabapi/wrapper.py index 70cd6c89..d2a90fac 100644 --- a/annofabapi/wrapper.py +++ b/annofabapi/wrapper.py @@ -197,7 +197,7 @@ def _get_all_objects(func_get_list: Callable, limit: int, **kwargs_for_func_get_ return all_objects - def execute_http_get(self, url: str) -> requests.Response: + def execute_http_get(self, url: str, **kwargs) -> requests.Response: """ 指定したURLに対してHTTP GETを実行します。 @@ -218,7 +218,7 @@ def execute_http_get(self, url: str) -> requests.Response: """ # noqa: E501 - return self.api._execute_http_request(http_method="get", url=url) + return self.api._execute_http_request(http_method="get", url=url, **kwargs) def download(self, url: str, dest_path: Union[str, Path], *, chunk_size: int = 1024 * 1024 * 500, logger_prefix: str = "") -> None: """