Zaker237 / pyidoit

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Python 92.8%Language:Shell 7.2%