27 lines
440 B
Python
27 lines
440 B
Python
from typing import List
|
|
from idoit_scaleup.base import IDoitApiBase
|
|
|
|
from idoit_scaleup import createApiCalls
|
|
from idoit_scaleup import consts
|
|
|
|
import json
|
|
|
|
config_file = 'api.json'
|
|
|
|
# Test Abfrage der IP-Adressen
|
|
|
|
OBJ_ID = 3518
|
|
|
|
f = open(config_file)
|
|
cfg = json.load(f)
|
|
idoit_apis = createApiCalls(cfg)
|
|
api = idoit_apis[consts.C__CATG__IP]
|
|
api.set_debug_mode()
|
|
#rtn=api.read_categories(OBJ_ID)
|
|
rtn=api.get_all()
|
|
print(json.dumps(rtn))
|
|
|
|
|
|
|
|
|