Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Unsplash (stock photos) Proxy #110

@peterpeterparker

Description

@peterpeterparker

As discussed, we need a proxy to handle two requests (= GET) to Unsplash, the stock photos provider

API

URL: https://api.unsplash.com/

Get photos

URL:

https://api.unsplash.com/search/photos/?query={searchTerm}&page={next}&client_id={secret_key}

Parameters:

{searchTerm} = string
{next} = number

Constants:

{secret_key} = string

Get download

https://api.unsplash.com/photos/{photoId}/download/?client_id={secret_key}

Parameters:

{photoId} = string

Constants:

{secret_key} = string

Note:

We don't have to warn the user about an error if something bad would happen

Typescript

The service I wrote for the frontend which we gonna replace with:

https://github.com/deckgo/deckdeckgo/blob/stockphotos/studio/src/app/services/api/photo/photo.service.tsx

Metadata

Metadata

Assignees

Labels

apiStudio's API

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions