Push API resources Open API documentation
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.4.4-alpha.3
- Package version: 2.2.2
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 3.7+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import databoxInstall via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import databoxExecute pytest to run the tests.
Please follow the installation procedure and then run the following:
import databox
from databox.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://push.databox.com
# See configuration.py for a list of all supported configuration parameters.
configuration = databox.Configuration(
host = "https://push.databox.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: basicAuth
configuration = databox.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with databox.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = databox.DefaultApi(api_client)
try:
api_instance.data_delete()
except ApiException as e:
print("Exception when calling DefaultApi->data_delete: %s\n" % e)All URIs are relative to https://push.databox.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | data_delete | DELETE /data | |
| DefaultApi | data_metric_key_delete | DELETE /data/{metricKey} | |
| DefaultApi | data_post | POST /data | |
| DefaultApi | metrickeys_get | GET /metrickeys | |
| DefaultApi | metrickeys_post | POST /metrickeys | |
| DefaultApi | ping_get | GET /ping |
Authentication schemes defined for the API:
- Type: HTTP basic authentication