Examples¶
The following examples are meant to help you get started using our Python API.
Environment Variables¶
All examples authenticate as described in the Authentication section, by setting Service Account in environment variables.
export DT_SERVICE_ACCOUNT_KEY_ID="<SERVICE_ACCOUNT_KEY_ID>"
export DT_SERVICE_ACCOUNT_SECRET="<SERVICE_ACCOUNT_SECRET>"
export DT_SERVICE_ACCOUNT_EMAIL="<SERVICE_ACCOUNT_EMAIL>"
Depending on the example, additional variables like DEVICE_ID
and PROJECT_ID
may be required.