Skip to main content

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
```

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.4.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distributions

sxapi-0.4-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

sxapi-0.4-py2-none-any.whl (4.8 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page