Hey, so I’m learning what the fetch function is and the use of an API, but now I am stuck though.
I have created the code as per below:
require("isomorphic-fetch");
let items = [];
fetch("https://www.googleapis.com/books/v1/volumes?q=isbn:0747532699")
.then(function (res) {
return res.json();
})
.then(function (result) {
items = result.items;
console.log(items);
}),
function (error) {
console.log(error);
};
So I get all the info on the book and so forth from the google api, but I now need to get the book title and the description of the book. I have searched for info on this but can’t seem to find anything that helps with this.
Can someone please help me here and help me understand how to get the title and description of the API?