I’m creating an app where users need to select a photo to begin with. To make things easier, I would like to add a tab to the widget where they can search for and select freely-available images from Unsplash.com.
Has anyone done this already with publicly available code? Is there a way to do this without first pre-uploading images from Unsplash.com to Uploadcare (i.e. without having the UUID’s upfront)?
Any suggestions on how to implement this would be appreciated. Thanks!
The basic idea is that you send a request to Unsplash API inside the custom tab function. It returns a set of images, and you create an image element from each one and append them to the container element of the custom tab. Also, you can add a custom click handler to each image depending on the requirements of your app. In the demo, you’ll need to add your Unsplash API key to make it work.