vpais / react-onboarding

React Onboarding project
0 stars 0 forks source link

Step #1 - Connect to the TMDB API #1

Closed marciammart closed 1 year ago

marciammart commented 1 year ago

Let's create a React App that uses the TMDB API to display movies or TV shows! The first step is to connect to the API. To do that we need to request and API token and test it before starting our project.

  1. Request an API token Here is the official guide on how to do that

  2. Test the connection You can use something like Postman or Insomnia[^1] to test your API token. To do that, make a request to the following endpoint using your API token and see if you get the details for the 1954 Godzilla movie 🦖. https://api.themoviedb.org/3/movie/1678?api_key=<api_token>&language=en-US

[^1]: Personally I prefer Insomnia because it is lighter, quicker, open source and free (unless you want some advanced features)

vpais commented 1 year ago
image

Here I was able to successfully access the endpoint with a bearer token