Google_ApplicationsServiceResource

The "applications" collection of methods.

Defined (2)

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

/google-api-php-client/src/contrib/Google_GamesManagementService.php  
  1. class Google_ApplicationsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Get the list of players hidden from the given application. This method is only available to user 
  5. * accounts for your developer console. (applications.listHidden) 
  6. * @param string $applicationId The application being requested. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param int maxResults The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults. 
  9. * @opt_param string pageToken The token returned by the previous request. 
  10. * @return Google_HiddenPlayerList 
  11. */ 
  12. public function listHidden($applicationId, $optParams = array()) { 
  13. $params = array('applicationId' => $applicationId); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('listHidden', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_HiddenPlayerList($data); 
  18. } else { 
  19. return $data; 
/google-api-php-client/src/contrib/Google_GamesService.php  
  1. class Google_ApplicationsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Retrieves the metadata of the application with the given ID. If the requested application is not 
  5. * available for the specified platformType, the returned response will not include any instance 
  6. * data. (applications.get) 
  7. * @param string $applicationId The application being requested. 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param string language The preferred language to use for strings returned by this method. 
  10. * @opt_param string platformType Restrict application details returned to the specific platform. 
  11. * @return Google_Application 
  12. */ 
  13. public function get($applicationId, $optParams = array()) { 
  14. $params = array('applicationId' => $applicationId); 
  15. $params = array_merge($params, $optParams); 
  16. $data = $this->__call('get', array($params)); 
  17. if ($this->useObjects()) { 
  18. return new Google_Application($data); 
  19. } else { 
  20. return $data; 
  21. /** 
  22. * Indicate that the the currently authenticated user is playing your application. 
  23. * (applications.played) 
  24. * @param array $optParams Optional parameters. 
  25. */ 
  26. public function played($optParams = array()) { 
  27. $params = array(); 
  28. $params = array_merge($params, $optParams); 
  29. $data = $this->__call('played', array($params)); 
  30. return $data;