Skip to content

servlet: unsplash (zig) #59

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

Merged
merged 5 commits into from
Apr 18, 2025
Merged

servlet: unsplash (zig) #59

merged 5 commits into from
Apr 18, 2025

Conversation

evacchi
Copy link
Contributor

@evacchi evacchi commented Feb 20, 2025

Unsplash Servlet

Unsplash is a collection of high-quality photos.
This servlet allows you to search and retrieve pictures from the archive.
Use in conjuction with the fetch servlet to fetch and display the URLs.

The servlet serves also as a tutorial for Zig support.

Note: this PR also adds Zig to CI.

Config

API_KEY: Your "Access Key" on https://unsplash.com/oauth/applications

Hosts

  • You should allow access to api.unsplash.com.

Example:

fetch a photo of Milan, Piazza Duomo

I'll help you fetch a photo of Milan's Piazza del Duomo using the Unsplash API

(uses unsplash)

Let me fetch this specific photo to show you:

(uses fetch)

This is a stunning aerial view of Milan's Piazza del Duomo, taken from one of the upper levels of the Cathedral (Duomo di Milano). The image captures the intricate Gothic architecture of the Duomo on the left, with its elaborate spires and statues, while showing the expansive square below filled with people. On the right side, you can see the elegant Galleria Vittorio Emanuele II, one of the world's oldest shopping galleries, with its distinctive neoclassical architecture. The photo provides a great perspective on how this historic square serves as the heart of Milan, where Gothic architecture meets classical design and modern city life.

The retrieved image: https://unsplash.com/photos/people-on-street-near-concrete-buildings-BBigUtobEYo

evacchi added 5 commits March 10, 2025 21:23
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
Signed-off-by: Edoardo Vacchi <evacchi@users.noreply.github.com>
@evacchi
Copy link
Contributor Author

evacchi commented Apr 18, 2025

now that the Zig sdk has been sorted out, this can be merged

@evacchi evacchi merged commit 93f1a4d into main Apr 18, 2025
1 check passed
@evacchi evacchi deleted the unsplash-zig branch April 18, 2025 17:12
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.

1 participant