I have the following problem when I make a call
var googleAPI = "https://www.googleapis.com/books/v1/volumes/"+item.id;
$.ajax({
type: 'GET',
url: googleAPI,
data: { pub : 'value' },
dataType: 'json',
success: function (item) {
titulo.value = item.volumeInfo.title;
autor.value = item.volumeInfo.authors;
reseña.value = item.volumeInfo.description;
categoria.value = item.volumeInfo.categories;
año.value = item.volumeInfo.publishedDate;
idioma.value = item.volumeInfo.language;
num_paginas.value = item.volumeInfo.pageCount;
},
error: function(libro, status, jqXHR) {
}
});
when they are all I have no problems, but sometimes the "item.volumeInfo.authors" does not exist in some books and lets you keep changing the others. It stops. If the field existed but it was empty, I could do something ... but since there is NO I do not know what to do, since I do not have much knowledge. I do not know if you understand? Greetings .-