Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

servlet: unsplash (zig)#59

Merged
evacchi merged 5 commits intomainfrom
unsplash-zig
Apr 18, 2025
Merged

servlet: unsplash (zig)#59
evacchi merged 5 commits intomainfrom
unsplash-zig

Conversation

@evacchi
Copy link
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant