Skip to content

A Simple and Easy-to-use python client for i-doit's JSON-RPC API

License

Notifications You must be signed in to change notification settings

Zaker237/pyidoit

Repository files navigation

pyidoit

A Simple and Easy-to-use python client for i-doit's JSON-RPC API

Installation

$ pip install pyidoit

Example

  • Create a file python file(main.py) with:
from pyidoit import IDoitClient

PYIDOIT_HOST = "http://localhost/idoit-22/src/jsonrpc.php"
PYIDOIT_API_KEY = "XXXXX-XXXXX-XXX"

def main():
    client = IDoitClient(
        host=PYIDOIT_HOST,
        apikey=PYIDOIT_API_KEY,
        username="",
        password="",
    )

    data = client.cmdb_objects_read()
    print(data)

if __name__ == "__main__":
    main()

Then run the file

$ python main.py

CONTRIBUTION GUIDE LINES