Google_AchievementDefinitionsServiceResource

The "achievementDefinitions" collection of methods.

Defined (1)

The class is defined in the following location(s).

/src/contrib/Google_GamesService.php  
  1. class Google_AchievementDefinitionsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Lists all the achievement definitions for your application. (achievementDefinitions.list) 
  5. * @param array $optParams Optional parameters. 
  6. * @opt_param string language The preferred language to use for strings returned by this method. 
  7. * @opt_param int maxResults The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults. 
  8. * @opt_param string pageToken The token returned by the previous request. 
  9. * @return Google_AchievementDefinitionsListResponse 
  10. */ 
  11. public function listAchievementDefinitions($optParams = array()) { 
  12. $params = array(); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('list', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_AchievementDefinitionsListResponse($data); 
  17. } else { 
  18. return $data;