home-assistant-ecosystem / python-hole

Python API for interacting with a *hole instance.
MIT License
9 stars 14 forks source link

Adds enable/disable functions #1

Closed ludeeus closed 5 years ago

ludeeus commented 6 years ago

This adds 2 new functions to this package:

Go to /admin/settings.php?tab=api and click the "Show API token" button to get the api_token

ludeeus commented 6 years ago

Should I add a property extra here that contains the responses from the API call? disable:

{"status":"disabled","FTLnotrunning":true}

enable:

{"status":"enabled","FTLnotrunning":true}
ludeeus commented 5 years ago

I forgot about this 😄 @fabaff any more you want me to do with this?

fabaff commented 5 years ago

Thanks. I will create a new release soon.