Method: leaderboards.list

列出應用程式的所有排行榜中繼資料。

HTTP 要求

GET https://games.googleapis.com/games/v1/leaderboards

查詢參數

參數
language

string

此方法傳回字串的偏好語言。

maxResults

integer

回應中傳回的排行榜數量上限。如有任何回應,傳回的排行榜實際數量可能少於指定的 maxResults

pageToken

string

先前要求傳回的權杖。

要求主體

要求主體必須為空白。

回應主體

排行榜物件清單。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "kind": string,
  "nextPageToken": string,
  "items": [
    {
      object (Leaderboard)
    }
  ]
}
欄位
kind

string

專門用於識別這項資源的類型。值一律為固定字串 games#leaderboardListResponse

nextPageToken

string

與結果下一頁相對應的權杖。

items[]

object (Leaderboard)

排行榜。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/games
  • https://www.googleapis.com/auth/games_lite

詳情請參閱 OAuth 2.0 總覽