src/api.js
// Call Flickr's API using fetch
Call Flickr's API using fetch
Call Flickr ' s API using fetch
async function flickrFetch(method, params) {
  const url = createFlickrUrl(method, params);
  const response = await fetch(url);
  const json = await response.json();
  checkFlickrJson(json);
  return json;
}
async function flickrFetch ( method , params ) { const url = createFlickrUrl ( method , params ) ; const response = await fetch ( url ) ; const json = await response . json ( ) ; checkFlickrJson ( json ) ; return json ; }
Call Flickr's API using fetch
Call Flickr ' s API using fetch