Last active
April 10, 2018 03:40
-
-
Save haingdc/655e4ed6a24f0d35d942d636397a2618 to your computer and use it in GitHub Desktop.
Revisions
-
haingdc renamed this gist
Apr 10, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
haingdc created this gist
Apr 10, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ //flickr-fetcher.js fetchFlickrData: function(apiKey, fetch) { if (!fetch && typeof jQuery !== "undefined") { fetch = jQuery.getJSON.bind(jQuery); } var url = "https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=" + apiKey.toString() + "&text=pugs&format=json&nojsoncallback=1"; return fetch(url); },