Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Google_Service_Games_Snapshots_Resource Class Reference

The "snapshots" collection of methods. More...

Inheritance diagram for Google_Service_Games_Snapshots_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 get ($snapshotId, $optParams=array())
 Retrieves the metadata for a given snapshot ID.
 
 listSnapshots ($playerId, $optParams=array())
 Retrieves a list of snapshots created by your application for the player corresponding to the player ID.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "snapshots" collection of methods.

Typical usage is: $gamesService = new Google_Service_Games(...); $snapshots = $gamesService->snapshots;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ get()

Google_Service_Games_Snapshots_Resource::get ( $snapshotId,
$optParams = array() )

Retrieves the metadata for a given snapshot ID.

(snapshots.get)

Parameters
string$snapshotIdThe ID of the snapshot.
array$optParamsOptional parameters.

@opt_param string language The preferred language to use for strings returned by this method.

Return values
Google_Service_Games_Snapshot

◆ listSnapshots()

Google_Service_Games_Snapshots_Resource::listSnapshots ( $playerId,
$optParams = array() )

Retrieves a list of snapshots created by your application for the player corresponding to the player ID.

(snapshots.listSnapshots)

Parameters
string$playerIdA player ID. A value of me may be used in place of the authenticated player's ID.
array$optParamsOptional parameters.

@opt_param string pageToken The token returned by the previous request. @opt_param int maxResults The maximum number of snapshot resources to return in the response, used for paging. For any response, the actual number of snapshot resources returned may be less than the specified maxResults. @opt_param string language The preferred language to use for strings returned by this method.

Return values
Google_Service_Games_SnapshotListResponse

The documentation for this class was generated from the following file: