Jsonp-flickr
Access Flickr's API from the browser via JSONP.
Installation:
npm install jsonp-flickr
You can use something like browserify to package for the browser.
Usage:
After you've initialized jsonp-flickr you can do as many requests you want as quickly as you want, jsonp will ensure that the right callback will get the right data and do all the clean up for you!
var flickr = ; var request = method: "flickr.test.echo" format: "json" api_key: "a1faa53df9402fc5cc2d9746118f9ddc"; // Using the callback APIflickr; // Using the promise API (vow promise)var promise = flickr; promise;
Licence
MIT