Skip to content

A plain javascript widget that lets you pick photos from different stock sources

License

Notifications You must be signed in to change notification settings

maxencehenneron/StockPhotoPicker

Repository files navigation

Stock Photo Picker

A plain-javascript Giphy and Unsplash photo picker.

Interface

How to use

var handler = new StockPhotoPicker({
  unsplash: {
    token: 'UNSPLASH_APPLICATION_ID'
  },
  giphy: {
    token: 'GIPHY_TOKEN'
  }
});

document.getElementById('unsplashButton').addEventListener('click', function (e) {
  handler.open({
    provider: 'unsplash'
  });
  e.preventDefault();
});

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A plain javascript widget that lets you pick photos from different stock sources

Resources

License

Stars

Watchers

Forks

Packages

No packages published