Google_LeaderboardsServiceResource

The "leaderboards" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_GamesService.php  
  1. class Google_LeaderboardsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Retrieves the metadata of the leaderboard with the given ID. (leaderboards.get) 
  6. * @param string $leaderboardId The ID of the leaderboard. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string language The preferred language to use for strings returned by this method. 
  9. * @return Google_Leaderboard 
  10. */ 
  11. public function get($leaderboardId, $optParams = array()) { 
  12. $params = array('leaderboardId' => $leaderboardId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('get', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_Leaderboard($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Lists all the leaderboard metadata for your application. (leaderboards.list) 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param string language The preferred language to use for strings returned by this method. 
  23. * @opt_param int maxResults The maximum number of leaderboards to return in the response. For any response, the actual number of leaderboards returned may be less than the specified maxResults. 
  24. * @opt_param string pageToken The token returned by the previous request. 
  25. * @return Google_LeaderboardListResponse 
  26. */ 
  27. public function listLeaderboards($optParams = array()) { 
  28. $params = array(); 
  29. $params = array_merge($params, $optParams); 
  30. $data = $this->__call('list', array($params)); 
  31. if ($this->useObjects()) { 
  32. return new Google_LeaderboardListResponse($data); 
  33. } else { 
  34. return $data;