diff --git a/tools/api_m.example.py b/tools/api_m.example.py index ac1769a..b96e08b 100644 --- a/tools/api_m.example.py +++ b/tools/api_m.example.py @@ -1,10 +1,14 @@ +import json import sys sys.path.append('..') # Add parent path to searchable list - from resources.lib.api import Api +def prettyPrint(data): + print(json.dumps(data, indent=2)) + DOMAIN = "es" api = Api(DOMAIN) # .. You can keep testing the api here +prettyPrint(api.collections())