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

Pi-hole API will change at some point #7

Closed
DL6ER opened this issue Feb 20, 2017 · 4 comments
Closed

Pi-hole API will change at some point #7

DL6ER opened this issue Feb 20, 2017 · 4 comments

Comments

@DL6ER
Copy link

DL6ER commented Feb 20, 2017

The API answers will change in the near future.
Please have a look at pi-hole/web#408

We can add something like api.php?version which will either respond with PHP or FTL if you like.

@friimaind
Copy link
Owner

Yes, that could be great thank you.

I will obviously adapt my app to use the new API version when it will be available.

@DL6ER
Copy link
Author

DL6ER commented Feb 20, 2017

http://pi.hole/admin/api.php?type

Currently:

[]

FTL-integration branch:

{"version":"FTL"}

FTL-integration branch, FTL not running (fallback mode):

{"version":"PHP"}

pi-hole/web@e3d791a

@DL6ER
Copy link
Author

DL6ER commented Feb 27, 2017

@DL6ER
Copy link
Author

DL6ER commented Mar 5, 2017

As of web v2.5 you can already use these keywords for detecting what to do:

http://pi.hole/admin/api.php?version -> {"version":2}
http://pi.hole/admin/api.php?version&type -> {"type":"PHP","version":2}

etc.

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

2 participants