Google_Service_Games_Snapshots_Resource

The "snapshots" collection of methods.

Defined (1)

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

/lib/vendor/google/apiclient/src/Google/Service/Games.php  
  1. class Google_Service_Games_Snapshots_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Retrieves the metadata for a given snapshot ID. (snapshots.get) 
  5. * @param string $snapshotId 
  6. * The ID of the snapshot. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string language 
  9. * The preferred language to use for strings returned by this method. 
  10. * @return Google_Service_Games_Snapshot 
  11. */ 
  12. public function get($snapshotId, $optParams = array()) 
  13. $params = array('snapshotId' => $snapshotId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('get', array($params), "Google_Service_Games_Snapshot"); 
  16. /** 
  17. * Retrieves a list of snapshots created by your application for the player 
  18. * corresponding to the player ID. (snapshots.listSnapshots) 
  19. * @param string $playerId 
  20. * A player ID. A value of me may be used in place of the authenticated player's ID. 
  21. * @param array $optParams Optional parameters. 
  22. * @opt_param string pageToken 
  23. * The token returned by the previous request. 
  24. * @opt_param int maxResults 
  25. * The maximum number of snapshot resources to return in the response, used for paging. For any 
  26. * response, the actual number of snapshot resources returned may be less than the specified 
  27. * maxResults. 
  28. * @opt_param string language 
  29. * The preferred language to use for strings returned by this method. 
  30. * @return Google_Service_Games_SnapshotListResponse 
  31. */ 
  32. public function listSnapshots($playerId, $optParams = array()) 
  33. $params = array('playerId' => $playerId); 
  34. $params = array_merge($params, $optParams); 
  35. return $this->call('list', array($params), "Google_Service_Games_SnapshotListResponse");