Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjarne Fyrstenborg 1135 posts 3217 karma points MVP 3x c-trib
    Feb 13, 2017 @ 17:53
    Bjarne Fyrstenborg
    0

    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

  • Simon Campbell 20 posts 326 karma points
    Mar 02, 2017 @ 15:06
    Simon Campbell
    0

    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.

  • Bjarne Fyrstenborg 1135 posts 3217 karma points MVP 3x c-trib
    Mar 03, 2017 @ 10:17
    Bjarne Fyrstenborg
    0

    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

  • Bjarne Fyrstenborg 1135 posts 3217 karma points MVP 3x c-trib
    Mar 19, 2019 @ 12:20
    Bjarne Fyrstenborg
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft