Client for accessing Netilion cloud
Project description
netilion-api
This is a python client to acccess Netilion REST API.
Swagger UI can be found at Staging API or Production 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_api
from netilion_api.rest import ApiException
configuration = netilion_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_api.AuthType.OAUTH_PASSWORD_GRANT
configuration.oauth_password_grant = netilion_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")
# full list of APIs see in swagger https://api.staging-env.netilion.endress.com/doc/v1/
api_instance = netilion_api.AssetApi(netilion_api.ApiClient(configuration))
try:
# full list of requests see in swagger https://api.staging-env.netilion.endress.com/doc/v1/
api_response = api_instance.get_assets()
print(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_assets: %s\n" % e)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
netilion_api-1.2.3.tar.gz
(405.5 kB
view details)
Built Distribution
File details
Details for the file netilion_api-1.2.3.tar.gz
.
File metadata
- Download URL: netilion_api-1.2.3.tar.gz
- Upload date:
- Size: 405.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4b95eaf2bfa39e12876b4a499f53af5523c0f5d9005a44f41d4a8a6fbe602ad |
|
MD5 | d832baa824bd6247ebfccd8c709a9bf5 |
|
BLAKE2b-256 | 0023232468ca90e3fc6bc41cdbe5be6d3ecdd096c1be878062640f6fdd1273d8 |
File details
Details for the file netilion_api-1.2.3-py3-none-any.whl
.
File metadata
- Download URL: netilion_api-1.2.3-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e4ea01ae38440e96b21ace4180e46aca5b7d5c67fd7c55212bc23020a41a14 |
|
MD5 | d01c7c0b8220aac7285d5a6077c0b293 |
|
BLAKE2b-256 | a69de3a35ccfd4c964fade68e4caad157f29ea0aefbbf5fe0a1b66ca2705e581 |