Skip to contents

Get Players on a Leaderboard

Usage

cr_get_leaderboard(
  leaderboard,
  limit = NULL,
  after = NULL,
  before = NULL,
  key = cr_get_key()
)

Arguments

leaderboard

Required. Leaderboard ID from cr_get_leaderboards().

limit

number of items returned in the response.

after

return only items that occur after this marker.

before

return only items that occur before this marker.

key

Required. API key. See https://developer.clashroyale.com/#/documentation Default: cr_get_key()

Value

a tibble of player rankings

Examples

if (FALSE) { # royale::cr_has_key()
cr_get_leaderboard(170000019, limit = 10)
}