This is a NodeJs Proxy created to Interact with the Unsplash API without storing your API Key on the Client.
- App.js contains the Proxy code
- App.yaml is used by Google App Engine to run the application
- package.json storse the dependecies
Proxy provides this request possibilities:
- Ask for a user's profile make a GET request to: www.yourproxyaddress.com/users/username[/?h=YourCustomHeightSize&w=YourCustomWidthSize] ([....] is Optional if you want a custom size for the user's profile image)
- Ask for a user's photos list make a GET request to www.yourproxyaddress.com/users/username/photos
- Ask for a photo www.yourproxyaddress.com/photos/photoID
- Download a photo (Download_Location) www.yourproxyaddress.com/photos/photoID/download
You have to set your private API Key to the
const key = 'YOUR API KEY';