Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic hub calls for users, rooms and zones #22

Open
jinnatar opened this issue Oct 25, 2022 · 1 comment
Open

Basic hub calls for users, rooms and zones #22

jinnatar opened this issue Oct 25, 2022 · 1 comment

Comments

@jinnatar
Copy link
Owner

The basics are trivial to implement for get calls, endpoints I've found:

  • cozify.hub_api.get('/hub/users', **kwargs)
  • cozify.hub_api.get('/rooms', **kwargs)
  • cozify.hub_api.get('/zones', **kwargs)

All of them probably support also post calls for adding items but that could be left to a follow up PR. I don't have the time to implement these right now but the get calls are trivial so a good first issue for anyone wanting to contribute. I'll also get to them eventually.

@jinnatar
Copy link
Owner Author

jinnatar commented Oct 25, 2022

For anyone curious to poke into arbitrary calls yoinking credentials and other low level params from a live hub state:

import cozify
from cozify import hub
kwargs = {}
cozify.hub._fill_kwargs(kwargs)
cozify.hub_api.get('/hub/users', **kwargs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant