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.1.3.tar.gz
(111.3 kB
view hashes)
Built Distribution
Close
Hashes for netilion_lab_tab_api-1.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d0eaddf6bebc28436112c13a4b88b2302596e6694b9ee911c824db9de8bea20 |
|
MD5 | 12f0facad8ce1232d1a29debfc240005 |
|
BLAKE2b-256 | 406f0adba70dc705c2dbd81e1695995d8712270d10b014362da569a91c895f39 |
Close
Hashes for netilion_lab_tab_api-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83a79461af86cfa8d7e47a1b3ac5215a9acd4c643b10f0d0faf3a2f69f8cc878 |
|
MD5 | 11b24e55a08254f58d688e993dc5405e |
|
BLAKE2b-256 | f5a33c32d356fae602e1403ffda3f75cae2c29ee9f1eb7fcd8a01615132918da |