Closed ryanwholey closed 2 years ago
I've started work on an API token based client https://github.com/ryanwholey/go-pihole. I'm thinking I'll integrate this in side by side to the current web password/session auth and then eventually remove the web password auth in a v1.0.0.
I'll have to also identify the minimum required Pi-Hole version that support API token auth
Edit: turns out to be Web Interface (AdmeLTE) >= 5.11.0
There has been some movement on the Pi-hole side to support API operations via API token!
It looks like it currently supports add/delete/list custom A & CNAME records, although the API response still looks to be in flux.
Might be time to move the Pi-hole client out to its own repo so it can be updated and released independently.