NYT Bestsellers are now displayed in a sortable table with isbn, author, title and description of each book

This commit is contained in:
Sahat Yalkabov
2013-12-10 01:27:58 -05:00
parent 3bd21d9244
commit bb577d43ea
3 changed files with 20 additions and 2 deletions

View File

@ -171,6 +171,7 @@ exports.getNewYorkTimes = function(req, res) {
var url = 'http://api.nytimes.com/svc/books/v2/lists?' + query;
request.get(url, function(error, request, body) {
var bestSellers = JSON.parse(body);
console.log(bestSellers.results[0].book_details);
res.render('api/nyt', {
title: 'New York Times API',
books: bestSellers.results