Google_Service_Games_Applications_Resource

The "applications" 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_Applications_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Retrieves the metadata of the application with the given ID. If the requested 
  5. * application is not available for the specified platformType, the returned 
  6. * response will not include any instance data. (applications.get) 
  7. * @param string $applicationId The application ID from the Google Play 
  8. * developer console. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string platformType Restrict application details returned to the 
  11. * specific platform. 
  12. * @opt_param string language The preferred language to use for strings returned 
  13. * by this method. 
  14. * @return Google_Service_Games_Application 
  15. */ 
  16. public function get($applicationId, $optParams = array()) 
  17. $params = array('applicationId' => $applicationId); 
  18. $params = array_merge($params, $optParams); 
  19. return $this->call('get', array($params), "Google_Service_Games_Application"); 
  20.  
  21. /** 
  22. * Indicate that the the currently authenticated user is playing your 
  23. * application. (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. return $this->call('played', array($params));