$results = $service->volumes->listVolumes('Henry David Thoreau', $optParams);
...
...
@@ -35,6 +39,7 @@ See the examples/ directory for examples of the key client features.
foreach ($results as $item) {
echo $item['volumeInfo']['title'], "<br /> \n";
}
```
## Frequently Asked Questions ##
...
...
@@ -57,6 +62,16 @@ When we started working on the 1.0.0 branch we knew there were several fundament
The _Service classes are generally automatically generated from the API discovery documents: https://developers.google.com/discovery/. Sometimes new features are added to APIs with unusual names, which can cause some unexpected or non-standard style naming in the PHP classes.
### How do I deal with non-JSON response types? ###
Some services return XML or similar by default, rather than JSON, which is what the library supports. You can request a JSON response by adding an 'alt' argument to optional params that is normally the last argument to a method call:
```
$opt_params = array(
'alt' => "json"
);
```
## Code Quality ##
Copy the ruleset.xml in style/ into a new directory named GAPI/ in your