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_key="user_key")
client.Body.get(user_key=**,start_date, end_date)
client.Activity.get(user_key=**,start_date, end_date)
client.Sleep.get(user_key=**,start_date, end_date)
client.SourceSpecific.get(user_key=**,start_date, end_date)
client.User.create(client_user_id=**)
client.User.providers(user_key=**)
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.

Files for vital, version 0.3.7
Filename, size File type Python version Upload date Hashes
Filename, size vital-0.3.7-py3-none-any.whl (14.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size vital-0.3.7.tar.gz (9.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page