Skip to main content

No project description provided

Project description

vital-python

The official Python Library for Vital API

Install

pip install vital

Calling Endpoints

from vital import Client

# Available environments are 'sandbox', 'development', and 'production'.
client = Client(client_id='***', secret='***', environment='sandbox')

Supported Endpoints

<!-- Dates have to be url encoded -->
start_date =  (datetime.now()-timedelta(days=1)).isoformat())
end_date = datetime.now().isoformat()

client.Link.create(user_id="user_id")
client.Body.get(user_id=**,start_date, end_date)
client.Activity.get(user_id=**,start_date, end_date)
client.Sleep.get(user_id=**,start_date, end_date)
client.User.create(client_user_id=**)
client.User.providers(user_id=**)
client.User.get(client_user_id=**)


from vital.types import WebhookEventCodes, WebhookType

client.Webhooks.test(WebhookEventCodes.HISTORICAL_DATA_UPDATE,
                     WebhookType.ACTIVITY)

Installing locally

poetry build --format sdist
tar -xvf dist/*-`poetry version -s`.tar.gz -O '*/setup.py' > setup.py

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

vital-1.1.17.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

vital-1.1.17-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

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