Skip to content

Commit 4c4131e

Browse files
committed
Change Api to API and dataverse to Dataverse.
Review for #192, #201.
1 parent 353703a commit 4c4131e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyDataverse/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
<https://www.python-httpx.org/advanced/authentication/>`_.
9292
Examples
9393
-------
94-
Create an Api connection::
94+
Create an API connection::
9595
9696
.. code-block::
9797
@@ -861,7 +861,7 @@ def __init__(self, base_url: str, api_token=None, api_version="v1", *, auth=None
861861
Parameters
862862
----------
863863
native_api_version : str
864-
Api version of Dataverse native api. Default is `v1`.
864+
API version of Dataverse native API. Default is `v1`.
865865
866866
"""
867867
super().__init__(base_url, api_token, api_version, auth=auth)

pyDataverse/auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self, api_token: str):
2121
Parameters
2222
----------
2323
api_token : str
24-
The API token retrieved from your dataverse instance user profile.
24+
The API token retrieved from your Dataverse instance user profile.
2525
2626
Examples
2727
--------
@@ -34,7 +34,7 @@ def __init__(self, api_token: str):
3434
3535
"""
3636
if not isinstance(api_token, str):
37-
raise ApiAuthorizationError("Api token passed is not a string.")
37+
raise ApiAuthorizationError("API token passed is not a string.")
3838
self.api_token = api_token
3939

4040
def auth_flow(self, request: Request) -> Generator[Request, Response, None]:
@@ -82,7 +82,7 @@ def __init__(self, bearer_token: str):
8282
8383
"""
8484
if not isinstance(bearer_token, str):
85-
raise ApiAuthorizationError("Api token passed is not a string.")
85+
raise ApiAuthorizationError("API token passed is not a string.")
8686
self.bearer_token = bearer_token
8787

8888
def auth_flow(self, request: Request) -> Generator[Request, Response, None]:

0 commit comments

Comments
 (0)