Google_Service_Games_Metagame_Resource

The "metagame" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Games.php  
  1. class Google_Service_Games_Metagame_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Return the metagame configuration data for the calling application. 
  5. * (metagame.getMetagameConfig) 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Service_Games_MetagameConfig 
  8. */ 
  9. public function getMetagameConfig($optParams = array()) 
  10. $params = array(); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('getMetagameConfig', array($params), "Google_Service_Games_MetagameConfig"); 
  13.  
  14. /** 
  15. * List play data aggregated per category for the player corresponding to 
  16. * playerId. (metagame.listCategoriesByPlayer) 
  17. * @param string $playerId A player ID. A value of me may be used in place of 
  18. * the authenticated player's ID. 
  19. * @param string $collection The collection of categories for which data will be 
  20. * returned. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param string pageToken The token returned by the previous request. 
  23. * @opt_param int maxResults The maximum number of category resources to return 
  24. * in the response, used for paging. For any response, the actual number of 
  25. * category resources returned may be less than the specified maxResults. 
  26. * @opt_param string language The preferred language to use for strings returned 
  27. * by this method. 
  28. * @return Google_Service_Games_CategoryListResponse 
  29. */ 
  30. public function listCategoriesByPlayer($playerId, $collection, $optParams = array()) 
  31. $params = array('playerId' => $playerId, 'collection' => $collection); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('listCategoriesByPlayer', array($params), "Google_Service_Games_CategoryListResponse");