Some of the keys/property names (googleId, pageCount) from the NYT endpoint differ from main recommendations output (see below). This causes an issue for iOS. The NYT endpoint needs to be changed to match the recommendations output.
Recommendations Output:
{
"authors": [
"George Orwell"
],
"averageRating": 4,
"categories": [
"Fiction"
],
"description": "Portrays life in a future time when a totalitarian government watches over all citizens and directs all activities",
"googleId": "_NBZPgAACAAJ",
"industryIdentifiers": [
{
"identifier": "143527704X",
"type": "ISBN"
}
],
"isEbook": false,
"language": "en",
"pageCount": 294,
"publishedDate": "1983",
"publisher": "Paw Prints",
"smallThumbnail": "http://books.google.com/books/content?id=_NBZPgAACAAJ&printsec=frontcover&img=1&zoom=5&source=gbs_api",
"textSnippet": "Portrays life in a future time when a totalitarian government watches over all citizens and directs all activities",
"thumbnail": "http://books.google.com/books/content?id=_NBZPgAACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"title": "1984",
"webReaderLink": "http://play.google.com/books/reader?id=_NBZPgAACAAJ&hl=&printsec=frontcover&source=gbs_api"
}
NYT Output:
{
"authors": [
"'John Grisham'"
],
"averagerating": 3.0,
"categories": [
"'Fiction'"
],
"description": "#1 New York Times bestselling author John Grisham returns to Camino Island in this irresistible page-turner that's as refreshing as an island breeze. In Camino Winds, mystery and intrigue once again catch up with novelist Mercer Mann, proving that the suspense never rests--even in paradise.",
"googleid": "4gBqygEACAAJ",
"isbn": "0385545932",
"isebook": false,
"lang": "en",
"maturityrating": "NOT_MATURE",
"pagecount": 304,
"publisheddate": "2020-04-28",
"publisher": "Doubleday",
"ratingscount": 1,
"smallthumbnail": "http://books.google.com/books/content?id=4gBqygEACAAJ&printsec=frontcover&img=1&zoom=5&source=gbs_api",
"subtitle": null,
"textsnippet": "In Camino Winds, mystery and intrigue once again catch up with novelist Mercer Mann, proving that the suspense never rests--even in paradise.",
"thumbnail": "http://books.google.com/books/content?id=4gBqygEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api",
"title": "Camino Winds",
"webreaderlink": "http://play.google.com/books/reader?id=4gBqygEACAAJ&hl=&printsec=frontcover&source=gbs_api"
}
Some of the keys/property names (
googleId
,pageCount
) from the NYT endpoint differ from main recommendations output (see below). This causes an issue for iOS. The NYT endpoint needs to be changed to match the recommendations output. Recommendations Output:NYT Output: