Client for accessing Lab part of Netilion cloud
Project description
netilion-lab-tab-api
This is a python client to acccess Netilion REST API.
Swagger UI can be found at Staging API
IMPORTANT: this library is for Lab part of API!
Please visit our developer portal for further instructions and information: https://developer.netilion.endress.com/
This Python package is automatically generated by the Swagger Codegen project.
Requirements.
Python 3.4+
Usage
import netilion_lab_tab_api
from netilion_lab_tab_api.rest import ApiException
configuration = netilion_lab_tab_api.Configuration()
configuration.host = 'https://api.staging-env.iiot.endress.com/v1'
# FOR BASIC AUTH
configuration.api_key['API-Key'] = 'YOUR_BASIC_API_KEY'
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# !OR!
# FOR OAUTH 2 PASSWORD GRANT
configuration.auth_type = netilion_lab_tab_api.AuthType.OAUTH_PASSWORD_GRANT
configuration.oauth_password_grant = netilion_lab_tab_api.OAuthPasswordGrant(username="YOUR_USERNAME",
password="YOUR_PASSWORD",
api_key="YOUR_OAUTH_API_KEY", # sometimes referred also as client id
api_secret="YOUR_OAUTH_API_SECRET", # sometimes referred also as client secret
oauth_token_url="https://api.staging-env.netilion.endress.com/oauth/token")
# create an instance of the API class
api_lab_instance_batch = netilion_lab_tab_api.BatchApi(netilion_lab_tab_api.ApiClient(configuration))
try:
api_response = api_lab_instance_batch.get_batches();
print(api_response)
except ApiException as e:
print("Exception: %s\n" % e)
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
netilion_lab_tab_api-1.2.2.tar.gz
(113.0 kB
view details)
Built Distribution
File details
Details for the file netilion_lab_tab_api-1.2.2.tar.gz
.
File metadata
- Download URL: netilion_lab_tab_api-1.2.2.tar.gz
- Upload date:
- Size: 113.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff727446816b8d7d874434521db1ebe19bb8d89861fda388470edc523fc5701a |
|
MD5 | 41daea0e772ed559868ece3d06c57394 |
|
BLAKE2b-256 | 735b9a4d552ceaf5a5a66db1d9f419ccc488a105a7b9d96e5d8f395cf0ec13c8 |
File details
Details for the file netilion_lab_tab_api-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: netilion_lab_tab_api-1.2.2-py3-none-any.whl
- Upload date:
- Size: 295.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362a5ec1d0b2b669de4738efd700fb16c209829d65c4a1d7674e6cd272eeb1a4 |
|
MD5 | 2b54b0e3ec986d84d9a6bb5d8432df50 |
|
BLAKE2b-256 | 0f60b9684c6a4112a22b651247c89d3c6c55f47ebc0d88d16b7d926827d83c2d |