Maybe it would be useful to create a provider for the image service, e.g. if you want to extend with another image service. Or combination of one or more services.
Besides Unsplash there seems to be other similar services, for example:
Thanks for the suggestion, I had actually already thought about doing this but haven't had time to get around to it yet. I see that Pexels has an API, but it doesn't look like stocksnap does.
Do you want to share the code in a Github repository?
The API's for Unsplash and Pexels have some similarities, e.g. query, page, per_page and the results have different properties like original image and different image sizes.
So it should be possible to handle the request in each provider classes and map the data to a common/shared model.
Add providers for image services
Maybe it would be useful to create a provider for the image service, e.g. if you want to extend with another image service. Or combination of one or more services.
Besides Unsplash there seems to be other similar services, for example:
https://stocksnap.io
https://www.pexels.com
/Bjarne
Hi Bjarne
Thanks for the suggestion, I had actually already thought about doing this but haven't had time to get around to it yet. I see that Pexels has an API, but it doesn't look like stocksnap does.
Hi Simon
Make take an approach like nuPickers with e.g. a DotNet data source, where it need a key/value pair for the different types of pickers.
In this it should maybe return a general model with properties for ImageUrl, (Thumbnail), Author, License, Date..
nuPickers Flickr Pickers and nuPickers Vimeo Picker are examples of custom data sources for nuPickers.
/Bjarne
Hi Simon
Do you want to share the code in a Github repository?
The API's for Unsplash and Pexels have some similarities, e.g.
query
,page
,per_page
and the results have different properties like original image and different image sizes.So it should be possible to handle the request in each provider classes and map the data to a common/shared model.
https://unsplash.com/documentation#search-photos https://www.pexels.com/api/documentation/
It would also be great to list categories, which the API's offers.
is working on a reply...