Skip to content

Commit

Permalink
Set additional kwargs to pass to the HTTPX client
Browse files Browse the repository at this point in the history
  • Loading branch information
kharigardner committed Mar 5, 2024
1 parent 1e350f5 commit 76a9174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfivetran/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ class FivetranClient:
Interface class for Fivetran API interactions via endpoints.
"""

def __init__(self, api_key: str, api_secret: str) -> None:
def __init__(self, api_key: str, api_secret: str, **httpx_kwargs) -> None:
if not api_key or not api_secret:
raise ValueError("api_key and api_secret are required")
self.api_key = api_key
self.api_secret = api_secret
self._client = httpx.Client()
self._client = httpx.Client(**httpx_kwargs)

@lazy
def account_info(self) -> GeneralApiResponse:
Expand Down

0 comments on commit 76a9174

Please sign in to comment.