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

API Examples #200

Open
Payero opened this issue Oct 28, 2020 · 4 comments
Open

API Examples #200

Payero opened this issue Oct 28, 2020 · 4 comments
Labels

Comments

@Payero
Copy link

Payero commented Oct 28, 2020

Patrik,
Huge fan of Pi Gallery 2, it does exactly what I needed to do. After reading some of the features in the README file I saw the ability to get random pictures:
Random photo url
You can generate an url that returns a random photo from your gallery. You can use this feature to develop 3rd party applications, like: changing desktop background

Can you provide information about how to use the API for this and other features? I could not find how to send this request to the server.

Thanks,
Oscar

@LorenzBischof
Copy link
Contributor

LorenzBischof commented Oct 28, 2020

There is a dropdown in the upper right corner. I generated this one in the demo: https://pigallery2.herokuapp.com/api/gallery/random/?directory=.&recursive=true
randomlink

@Payero
Copy link
Author

Payero commented Oct 28, 2020 via email

@bpatrik
Copy link
Owner

bpatrik commented Oct 28, 2020 via email

@nishantbb
Copy link

When I use these links I receive a 404 when the browser requests the favicon. Is it possible to add the default favicon for PiGallery2 to these links?

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

No branches or pull requests

4 participants