Created
April 4, 2018 08:12
-
-
Save haingdc/a804734ef83e8285db49f1bd499a2101 to your computer and use it in GitHub Desktop.
Gửi các request tới server thông qua TDD
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 characters
// flickr-fetcher.js | |
fetchFlickrData: function(apiKey, fetch) { | |
var url = 'https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=' | |
+ apiKey + '&text=pugs&format=json&nojsoncallback=1' | |
return fetch(url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment