jquery - The Movie Database: Return Movie Overview JSON -


learning how connect api using movie database json. right i'm able call database , return "poster_path", "original_title", , "release_date". found ton of questions on how hook call nothing tells me how movie overview. i'm bit fuzzy following provided documentation.

what return "overview" of each movie. not see overview param in array objects when console.log(json).

example of return can found on movie page expendables 3, under overview section on movie page.

$(document).ready(function(){     var url = 'http://api.themoviedb.org/3/',             mode = 'search/movie?query=',             input,             moviename,             key = '&api_key=<api_key>';      $('#search').on('click', function() {         var input = $('#term').val(),                 moviename = encodeuri(input);          $.ajax({             type: 'get',             url: url + mode + input + key,             async: false,             jsonpcallback: 'testing',             contenttype: 'application/json',             datatype: 'jsonp',             success: function(json) {                 jquery.each(json.results, function (key, val) {                     /*playing around different keywords "overview", "primary_info" , others randomly inserted , returned undefined*/                     /*console.log(json.results[key].poster_path);                     console.log(json.results[key].original_title);                     console.log(json.results[key].release_date);*/                     console.log(json);                 });             },             error: function(e) {                 console.log(e.message);             }         }).done(function(){             $('.moviesearch').find("input[type=text]").val("");         });     });  }); 

any appreciated, , if more information needed in solving problem gladly provide.

it looks making /search/movie?query={phrase} call. call return summary information list of movies match query. id value returned each movie in list. can use id in subsequent /movie/{id} call details movie. details include overview.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -