#!/usr/bin/env python3
from cozify import hub, hub_api
import pprint, sys


def main(path):
    hub.ping()
    kwargs = {}
    hub._fill_kwargs(kwargs)
    response = hub_api.get(path, **kwargs)
    pprint.pprint(response)


if __name__ == "__main__":
    if len(sys.argv) > 1:
        main(sys.argv[1])
    else:
        sys.exit(1)

Add a new utility for easily making arbitrary hub GET calls
Add a new utility for easily making arbitrary hub GET calls

Useful for exploring for undocumented endpoints without having to deal
with authentication, hub ip and so on.
