diff --git a/src/yonoma/client.py b/src/yonoma/client.py index d691b5d..d192930 100644 --- a/src/yonoma/client.py +++ b/src/yonoma/client.py @@ -1,14 +1,17 @@ import requests from yonoma.exceptions import YonomaAPIError +from yonoma.version import VERSION class YonomaClient: BASE_URL = "https://api.yonoma.io/v1/" def __init__(self, api_key): self.api_key = api_key + self.version = VERSION self.headers = { "Authorization": f"Bearer {self.api_key}", - "Content-Type": "application/json" + "Content-Type": "application/json", + "User-Agent": f"yonoma-python: {self.version}" } def request(self, method, endpoint, data=None):