query->results)) { //echo "yessir"; date_default_timezone_set('Australia/Sydney'); $date = date('d/m/Y h:i:s a', time()); $i=1; echo "
";
//if (1 == 2) {
if (isset($event->volumeInfo->authors[0])) {
$ais = $event->volumeInfo->authors[0];
if (strlen($ais) == 1) {
echo " Author: ".$event->volumeInfo->authors." "; } else { echo "Authors: ".$event->volumeInfo->authors[0]; $k = 1; while (isset($event->volumeInfo->authors[$k])) { echo ", ".$event->volumeInfo->authors[$k]; $k++; } echo " "; } } else if (isset($event->volumeInfo->authors)) { echo "Author: ".$event->volumeInfo->authors." "; if (isset($event->volumeInfo->industryIdentifiers->identifier)) { echo "ISBN: ".$event->volumeInfo->industryIdentifiers->identifier." "; } else if (isset($event->volumeInfo->industryIdentifiers[1])) { echo "ISBNs: ".$event->volumeInfo->industryIdentifiers[0]->identifier." "; echo "".$event->volumeInfo->industryIdentifiers[1]->identifier." "; } else if (isset($event->volumeInfo->industryIdentifiers[0])) { echo "ISBN: ".$event->volumeInfo->industryIdentifiers[0]->identifier." "; } } if (isset($event->accessInfo->webReaderLink) && ($event->saleInfo->isEbook == "true" || $event->saleInfo->isEbook)) { echo "Web Reading Link: Web Reader "; } if (isset($event->volumeInfo->previewLink)) { echo "Preview Link: Preview "; } if (isset($event->volumeInfo->infoLink)) { echo "Information Link: Information "; } if (isset($event->volumeInfo->canonicalVolumeLink)) { echo "Canonical Volume Link: Canonical Volume "; } if (isset($event->searchInfo->textSnippet)) { if ($event->volumeInfo->description != $event->searchInfo->textSnippet) echo "Text Snippet: ".$event->searchInfo->textSnippet." "; } echo "Publisher: ".$event->volumeInfo->publisher." "; echo "Published Date: ".$event->volumeInfo->publishedDate." "; echo "Description: " . str_replace("null", "", $event->volumeInfo->description) . " "; //} echo " |
".$huh->message."
\n"; } $i++; } echo "