diff --git a/pyDataverse/api.py b/pyDataverse/api.py index a69316c..1ce6c38 100644 --- a/pyDataverse/api.py +++ b/pyDataverse/api.py @@ -91,7 +91,7 @@ def __init__( `_. Examples ------- - Create an Api connection:: + Create an API connection:: .. code-block:: @@ -861,7 +861,7 @@ def __init__(self, base_url: str, api_token=None, api_version="v1", *, auth=None Parameters ---------- native_api_version : str - Api version of Dataverse native api. Default is `v1`. + API version of Dataverse native API. Default is `v1`. """ super().__init__(base_url, api_token, api_version, auth=auth) diff --git a/pyDataverse/auth.py b/pyDataverse/auth.py index 9a04b4f..3e8c62b 100644 --- a/pyDataverse/auth.py +++ b/pyDataverse/auth.py @@ -21,7 +21,7 @@ def __init__(self, api_token: str): Parameters ---------- api_token : str - The API token retrieved from your dataverse instance user profile. + The API token retrieved from your Dataverse instance user profile. Examples -------- @@ -34,7 +34,7 @@ def __init__(self, api_token: str): """ if not isinstance(api_token, str): - raise ApiAuthorizationError("Api token passed is not a string.") + raise ApiAuthorizationError("API token passed is not a string.") self.api_token = api_token def auth_flow(self, request: Request) -> Generator[Request, Response, None]: @@ -82,7 +82,7 @@ def __init__(self, bearer_token: str): """ if not isinstance(bearer_token, str): - raise ApiAuthorizationError("Api token passed is not a string.") + raise ApiAuthorizationError("API token passed is not a string.") self.bearer_token = bearer_token def auth_flow(self, request: Request) -> Generator[Request, Response, None]: