class Leaderboards extends Resource (View source)

The "leaderboards" collection of methods.

Typical usage is:

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

Methods

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

Retrieves the metadata of the leaderboard with the given ID.

listLeaderboards(array $optParams = [])

Lists all the leaderboard metadata for your application.

Details

Leaderboard get(string $leaderboardId, array $optParams = [])

Retrieves the metadata of the leaderboard with the given ID.

(leaderboards.get)

Parameters

string $leaderboardId

The ID of the leaderboard.

array $optParams

Optional parameters.

Return Value

Leaderboard

Exceptions

Exception

LeaderboardListResponse listLeaderboards(array $optParams = [])

Lists all the leaderboard metadata for your application.

(leaderboards.listLeaderboards)

Parameters

array $optParams

Optional parameters.

Return Value

LeaderboardListResponse

Exceptions

Exception