Skip to content

Commit

Permalink
Feat/api animals (#49)
Browse files Browse the repository at this point in the history
* implement animals endpoint

* implement missing animals calls

* add test for animal endpoint
  • Loading branch information
Mopsgeschwindigkeit authored Dec 15, 2023
1 parent f145bb3 commit 312d733
Show file tree
Hide file tree
Showing 3 changed files with 1,489 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 @@ -4,6 +4,7 @@
)
from sxapi.publicV2.alarms import Alarms
from sxapi.publicV2.animalgroups import AnimalGroups
from sxapi.publicV2.animals import Animals
from sxapi.publicV2.data import Data
from sxapi.publicV2.devices import Devices
from sxapi.publicV2.events import Events
Expand Down Expand Up @@ -38,6 +39,7 @@ def __init__(self, base_url=None, email=None, password=None, api_token=None):
self.observation_groups = ObservationGroups(api=self)
self.devices = Devices(api=self)
self.organisations = Organisations(api=self)
self.animals = Animals(api=self)

super().__init__(
base_url,
Expand Down
Loading

0 comments on commit 312d733

Please sign in to comment.