idoit-api-client

i-doit API Client for Python. Translated from the original PHP source.


Keywords
idoit_api_client
License
GPL-3.0
Install
pip install idoit-api-client==0.1.0

Documentation

i-doit API Client for Python

Documentation Status Updates

i-doit API Client for Python. Translated from the original PHP source.

Features

  • Make requests to the i-doit API with a method name and parameters
  • Requests are parsed, checked and returned as a dictionary
  • Make raw requests to the i-doit API
  • TODO: Read/create/upsert i-doit Objects, Object Types, Object Categories and Object Category Attributes

Implemented Objects and Methods

Object | Method | Implemented | Tests implemented |

|--------|--------|-------------|-------------------| | CMDBObjectType | read | Yes | Yes |

Usage

Simple usage example:

from idoit_api_client import Constants, API
config = {
    Constants.URL: 'https://demo.i-doit.com/src/jsonrpc.php',
    Constants.KEY: 'c1ia5q',
    Constants.USERNAME: 'admin',
    Constants.PASSWORD: 'admin'
}
api = API(config)
api.login()
result = api.request('cmdb.category.read', {
    'objID': 1,
    'category': 'C__CATG__GLOBAL'
})
print(result)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.