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

Added support for Pi-hole API Token. Fix requests. #4

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

WillPresley
Copy link
Contributor

Necessary due to recent planned changes with the Pi-hole web interface that have now gone into effect: https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/ and pi-hole/web#2411.

Most API calls, including 'status' and 'summary', now require the Pi-hole API token, which can be obtained through the Settings > API page.

Based on the 2nd link above, there may be some further changes in the future here.

Lastly, Python is not something I am incredibly well-versed in these days, but I did my best to follow the conventions and add to the Readme. Feel free to tweak this or offer suggestions, and I can clean up the PR.

Love this little tool and have it in all my startup shell scripts! Out of town and realized it had stopped working, so whipped this up.

Necessary due to recent planned changes with the Pi-hole web interface that have now gone into effect: https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/ and pi-hole/web#2411.

Most API calls, including 'status' and 'summary', now require the Pi-hole API token, which can be obtained through the Settings > API page.

Based on the 2nd link above, there may be some further changes in the future here.
@WillPresley WillPresley mentioned this pull request Jan 29, 2023
Closed
@pavelgar pavelgar merged commit 9adda2a into pavelgar:master Feb 14, 2023
@WillPresley WillPresley deleted the add-api-token-support branch February 14, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants