Skip to content

Commit

Permalink
Setting self._base_url
Browse files Browse the repository at this point in the history
  • Loading branch information
zlove committed Jun 28, 2023
1 parent 743bbdc commit 958ec20
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/blueink/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ def __init__(
if not base_url:
base_url = DEFAULT_BASE_URL

self._base_url = base_url

self._request_helper = RequestHelper(private_api_key, raise_exceptions)

self.bundles = BundleSubClient(base_url, self._request_helper)
self.persons = PersonSubClient(base_url, self._request_helper)
self.packets = PacketSubClient(base_url, self._request_helper)
self.templates = TemplateSubClient(base_url, self._request_helper)
self.webhooks = WebhookSubClient(base_url, self._request_helper)
self.bundles = BundleSubClient(self._base_url, self._request_helper)
self.persons = PersonSubClient(self._base_url, self._request_helper)
self.packets = PacketSubClient(self._base_url, self._request_helper)
self.templates = TemplateSubClient(self._base_url, self._request_helper)
self.webhooks = WebhookSubClient(self._base_url, self._request_helper)

0 comments on commit 958ec20

Please sign in to comment.