Skip to contents

Get Players on a League's Board of a Leaderboard

Usage

cr_get_leaderboard_league(
  leaderboard,
  league,
  limit = NULL,
  after = NULL,
  before = NULL,
  key = cr_get_key()
)

Arguments

leaderboard

Required. Leaderboard ID from cr_get_leaderboards().

league

Required. League ID from the leagues of a leaderboard in 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_league(784088, 1333092601, limit = 10)
}