i-doit API Client for Python

https://img.shields.io/pypi/v/idoit_api_client.svg https://img.shields.io/travis/tschreiner/idoit_api.svg 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.