Skip to content

Commit 957eb71

Browse files
author
Ian Barber
committed
2 parents b1e0363 + 9aa14e4 commit 957eb71

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ When we started working on the 1.0.0 branch we knew there were several fundament
5858

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

61-
### How do I deal with non-JSON response types ###
61+
### How do I deal with non-JSON response types? ###
6262

6363
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:
6464

src/Google/Service/GamesManagement.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,12 @@ public function resetAll($optParams = array())
331331
* (achievements.resetAllForAllPlayers)
332332
*
333333
* @param array $optParams Optional parameters.
334-
* @return Google_Service_GamesManagement_AchievementResetAllResponse
335334
*/
336335
public function resetAllForAllPlayers($optParams = array())
337336
{
338337
$params = array();
339338
$params = array_merge($params, $optParams);
340-
return $this->call('resetAllForAllPlayers', array($params), "Google_Service_GamesManagement_AchievementResetAllResponse");
339+
return $this->call('resetAllForAllPlayers', array($params));
341340
}
342341
/**
343342
* Resets the achievement with the given ID for all players. This method is only

0 commit comments

Comments
 (0)