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: