class Snapshots extends Resource (View source)

The "snapshots" collection of methods.

Typical usage is:

 $gamesService = new Google\Service\Games(...);
 $snapshots = $gamesService->snapshots;

Methods

get(string $snapshotId, array $optParams = [])

Retrieves the metadata for a given snapshot ID. (snapshots.get)

listSnapshots(string $playerId, array $optParams = [])

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

Details

Snapshot get(string $snapshotId, array $optParams = [])

Retrieves the metadata for a given snapshot ID. (snapshots.get)

Parameters

string $snapshotId

The ID of the snapshot.

array $optParams

Optional parameters.

Return Value

Snapshot

Exceptions

Exception

SnapshotListResponse listSnapshots(string $playerId, array $optParams = [])

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

Parameters

string $playerId

A player ID. A value of me may be used in place of the authenticated player's ID.

array $optParams

Optional parameters.

Return Value

SnapshotListResponse

Exceptions

Exception