Code Along: Giphy API with Async / Await

Code Along: Giphy Search API with Async / Await

We’re going to modify our Giphy’s API application and use async / await to make our API request

1. Sign up for a Giphy API Key

2. Get the starter code

3. Include Axios in your project via CDN

  • We’ll be using axios to make our API request. Add the following script tag right before your closing <body> tag but before the script tag targeting your app.js file
  <script
      src="https://code.jquery.com/jquery-3.4.1.min.js"
      integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
      crossorigin="anonymous"></script>
  <script src="https://unpkg.com/axios/dist/axios.min.js"></script> <!-- Add the axios script tag here -->
  <script src="js/app.js"></script>