Skip to content

Commit

Permalink
Change Api to API and dataverse to Dataverse.
Browse files Browse the repository at this point in the history
Review for gdcc#192, gdcc#201.
  • Loading branch information
shoeffner committed Jul 23, 2024
1 parent 353703a commit 4c4131e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pyDataverse/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
<https://www.python-httpx.org/advanced/authentication/>`_.
Examples
-------
Create an Api connection::
Create an API connection::
.. code-block::
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions pyDataverse/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------
Expand All @@ -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]:
Expand Down Expand Up @@ -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]:
Expand Down

0 comments on commit 4c4131e

Please sign in to comment.