Skip to content

Commit f925fd3

Browse files
committed
Merge pull request googleapis#336 from ianbarber/master
Small updates
2 parents c619b99 + 8726af3 commit f925fd3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ When we started working on the 1.0.0 branch we knew there were several fundament
5959

6060
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.
6161

62+
### How do I deal with non-JSON response types ###
63+
64+
Some servives 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:
65+
66+
```
67+
$opt_params = array(
68+
'alt' => "json"
69+
);
70+
```
71+
6272
## Code Quality ##
6373

6474
Copy the ruleset.xml in style/ into a new directory named GAPI/ in your

src/Google/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
class Google_Client
3838
{
39-
const LIBVER = "1.0.5-beta";
39+
const LIBVER = "1.0.6-beta";
4040
const USER_AGENT_SUFFIX = "google-api-php-client/";
4141
/**
4242
* @var Google_Auth_Abstract $auth

0 commit comments

Comments
 (0)