Goodreads Developers discussion
questions
>
API with Php
date
newest »


Instead of print_r($contents), try something like this:
<?php $url = "https://www.goodreads.com/search.xml?...
$contents = file_get_contents($url);
$read_books_array = new SimpleXMLElement($contents);
?>
To return the results as an array:
<?php
var_dump($read_books_array);
?>
It gives me the content but not in an array format.
It doesn't give me any result at all.
Please tell me how I can get the response from the API in PHP.
Thanks in advance.