From 49ea93b2f229122416f49e8dbcefda2f8ea85b75 Mon Sep 17 00:00:00 2001 From: ulric denis Date: Thu, 1 Aug 2024 17:41:57 +0200 Subject: [PATCH] :bug: fix token getter --- soti_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soti_api.py b/soti_api.py index 3e9ba3f..e2f4379 100644 --- a/soti_api.py +++ b/soti_api.py @@ -74,7 +74,7 @@ def _get_token(self): self._check_response(resp, "getting token") - self.token = resp.json()["access_token"] + return resp.json()["access_token"] def _encode_multipart_related(self, fields, boundary=None): if boundary is None: