Skip to content

Commit 98cff89

Browse files
committed
Fix missing token property
1 parent 085828b commit 98cff89

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/apify_client/_apify_client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ def _base_kwargs(self) -> dict:
136136
'client_registry': self._client_registry,
137137
}
138138

139+
@property
140+
def token(self) -> str | None:
141+
"""The Apify API token used by the client."""
142+
return self._config.token
143+
139144
def actor(self, actor_id: str) -> ActorClient:
140145
"""Retrieve the sub-client for manipulating a single Actor.
141146
@@ -350,6 +355,11 @@ def _base_kwargs(self) -> dict:
350355
'client_registry': self._client_registry,
351356
}
352357

358+
@property
359+
def token(self) -> str | None:
360+
"""The Apify API token used by the client."""
361+
return self._config.token
362+
353363
def actor(self, actor_id: str) -> ActorClientAsync:
354364
"""Retrieve the sub-client for manipulating a single Actor.
355365

0 commit comments

Comments
 (0)