I\'m having trouble using the Google Books API
I am inexperienced in working with JSON.
My form:
Take a look at the Google Books API client library for PHP https://developers.google.com/books/docs/v1/libraries (They have some examples.) What you're trying to do is not going to work for at least two reasons:
header("Location: $page");
redirects; it doesn't grab the page contents.Edit: The authenticating part is not true if you don't need to access or create your own "bookshelves." So you could try:
$data = file_get_contents($page);
$data = json_decode($data, true);
$item = $data->items;