Metadata-Version: 2.1
Name: netilion-lab-tab-api
Version: 1.2.0
Summary: Client for accessing Lab part of Netilion cloud
Author-email: Andrey Dodonov <Andrey.Dodonov@endress.com>
License: Copyright (c) 2018 The Python Packaging Authority
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Project-URL: Homepage, https://staging-env.netilion.endress.com/
Project-URL: API, https://api.staging-env.netilion.endress.com/doc/v1/
Keywords: Netilion,Cloud,IIoT,Automation,E+H,Endress+Hauser,Lab
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4
Description-Content-Type: text/markdown
License-File: LICENSE

# netilion-lab-tab-api

This is a python client to acccess [Netilion](https://netilion.endress.com/) REST API.

Swagger UI can be found at [Staging API](https://api.staging-env.netilion.endress.com/doc/v1/)  
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](https://github.com/swagger-api/swagger-codegen) project.

## Requirements.

Python 3.4+

## Usage

```python
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)

```
