Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1015 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 1015 Bytes

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