From 4e4f72cca01658f4b345234760032119493820c4 Mon Sep 17 00:00:00 2001 From: karthickTwinArcus Date: Sat, 29 Mar 2025 13:26:40 +0530 Subject: [PATCH] Update client.py --- src/yonoma/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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):