Eventonica - Part 4 - API calls

Overview

Now that you’ve learned about APIs, AJAX, and JSON, you’ll extend your Eventonica project to make API calls to the Ticketmaster API and display the results in the UI.

In this part of the project, you’ll add the ability to import events from Ticketmaster. A user of your site will be able to search for events by keyword, then choose an event and add it to their list of events.

Instructions

Start a new folder

Before doing anything else, create a new folder called Eventonica-Part-4 and copy the contents of your existing Eventonica project into this folder.

Details

  1. Read the Ticketmaster API docs to learn about their APIs overall and the Event Search API specifically. You don’t need to read the docs for the other APIs offered.

  2. Try out the Ticketmaster API Explorer to practice using the Event Search API. Try searching for events by keyword.

  3. Decide where in your HTML you want to incorporate the Ticketmaster API, and add the following to your HTML file:

  1. In your jQuery file, add code so that when a user submits a keyword in your new HTML form:
  1. Now you will allow the user to import the first returned event:

Challenges

Try doing at least one of the extensions below: