zwcook801 / Debug_Thugz

Project 1 Server Api
0 stars 0 forks source link

Look into and test the TMDB web api- make sure it can return the data that we want #11

Closed mkidee closed 1 year ago

zwcook801 commented 1 year ago

https://www.themoviedb.org/documentation/api

hattiesteed commented 1 year ago

API Key: 798d3829156f2a1840e8049c3a0c46b1

hattiesteed commented 1 year ago

  method: 'GET',
  redirect: 'follow'
};

fetch("https://api.themoviedb.org/3/discover/movie?api_key=798d3829156f2a1840e8049c3a0c46b1&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1&with_genres=28&with_watch_monetization_types=flatrate", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));```