We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7e7243 commit b8016b7Copy full SHA for b8016b7
fishjam/api/_client.py
@@ -5,12 +5,13 @@
5
from fishjam._openapi_client.types import Response
6
from fishjam.errors import HTTPError
7
from fishjam.utils import get_fishjam_url
8
+from fishjam.version import get_version
9
10
11
class Client:
12
def __init__(self, fishjam_id: str, management_token: str):
13
self._fishjam_url = get_fishjam_url(fishjam_id)
- self.client = AuthenticatedClient(self._fishjam_url, token=management_token)
14
+ self.client = AuthenticatedClient(self._fishjam_url, token=management_token, headers={"x-fishjam-api-client": f"python-server-{get_version()}"})
15
16
def _request(self, method, **kwargs):
17
response = method.sync_detailed(client=self.client, **kwargs)
0 commit comments