0.0.2 • Published 5 years ago

stockphotopicker v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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