I tried to access with following javascript syntax:
'https://api.themoviedb.org/3/search/movie?api_key=###&query=' + $scope.MovieName + '&year=' + $scope.Year
what can I do now
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on January 23, 2018 at 3:35 PM
This query is working fine with your API key (I've truncated it for privacy reasons):
What's the actual error you're getting?
Reply by Ganesh_Keerthi
on January 23, 2018 at 10:12 PM
When I run the HTML in server side, I get the following errors in console window
Reply by Travis Bell
on January 24, 2018 at 1:06 AM
You don't have a question mark, defining your query param. Here's the correct URL, notice the question mark.
Reply by Ganesh_Keerthi
on January 24, 2018 at 5:09 AM
OK, one small clarification, the syntax which was in the console log is different from what I have defined. I have given the correct syntax in the first message, 'https://api.themoviedb.org/3/search/movie?api_key=###&query=' + $scope.MovieName + '&year=' + $scope.Year how come it is changed in the console window https://api.themoviedb.org/3/movie/181808api_key=4d394ed**** which I have not defined in my javascript file.