Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Connecting with API1:10 with Brandy Morgan
We will need go into our API folder. we will then fetch the data that we need from Marvel to use in our application, and create our getCharacters method for fetching the data we need from the Marvel API.
In this stage, we're gonna set up our third party API, Marvel.
You will need to make sure to check out the Teacher's Notes for
this section to walk through setting up your API keys.
You will need your unique keys to make API calls.
First thing we'll wanna do is take a look at the API that we will be using.
We are in the developer portal of the Marvel API.
We will first need to read the documentation,
which is very important when using third party APIs.
We will need to see how Marvel is going to return the data to us.
If you noticed in the last section, we already had mock data from the API,
and it was structured in a way to replicate the way we were getting it back.
This allows us to get comfortable with looking at how data is structured in APIs.
The model that we are gonna be using is for the characters.
As of right now we are only interested in the character's ID, name, and thumbnail.
But if you would like to add on to this, I would highly recommend looking here.
Let's dive into getting this implemented.
You need to sign up for Treehouse in order to download course files.Sign up