smaXtec API client
Project description
# sxapi
smaXtec API Client
Python wrapper for the smaXtec public API
## Usage ##
To use the API smaXtec user credentials (smaXtec Messenger Account) are needed.
```
from sxapi import API
a = API(email="myuser@smaxtec.com", password="password")
# Get organisations
orgas = a.organisations
# Get Animals in an organisation
animals = orgas[0].animals
# Get Sensordata for an animal
data = animals[0].sensordata.get("temp")
# Get Events for an animal
events = animals[0].events
```
smaXtec API Client
Python wrapper for the smaXtec public API
## Usage ##
To use the API smaXtec user credentials (smaXtec Messenger Account) are needed.
```
from sxapi import API
a = API(email="myuser@smaxtec.com", password="password")
# Get organisations
orgas = a.organisations
# Get Animals in an organisation
animals = orgas[0].animals
# Get Sensordata for an animal
data = animals[0].sensordata.get("temp")
# Get Events for an animal
events = animals[0].events
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sxapi-0.5.tar.gz
(5.3 kB
view hashes)
Built Distribution
sxapi-0.5-py2-none-any.whl
(7.2 kB
view hashes)