Skip to content

Commit

Permalink
Feat/api users (#37)
Browse files Browse the repository at this point in the history
* create Todos class

* added test

* renamed test file

* moved publicApiV2 impelemntation to publicV2 folder

* fixed imports after moving publicAPIV2 class

* added docstrings

* docstring v2

* created publicAPIV2 Users class

* added test
  • Loading branch information
Mopsgeschwindigkeit authored Oct 24, 2023
1 parent 661e3c6 commit 24b3f2c
Show file tree
Hide file tree
Showing 3 changed files with 667 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sxapi/publicV2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
BaseAPI,
)
from sxapi.publicV2.todos import Todos
from sxapi.publicV2.users import Users

PUBLIC_API_V2_BASE_URL = "https://api.smaxtec.com/api/v2"

Expand All @@ -14,6 +15,7 @@ def __init__(self, base_url=None, email=None, password=None, api_token=None):
api_type = ApiTypes.PUBLIC

self.todos = Todos(api=self)
self.users = Users(api=self)

super().__init__(
base_url,
Expand Down
Loading

0 comments on commit 24b3f2c

Please sign in to comment.