lor_leaderboard: Return Leaderboard

View source: R/lor_leaderboard.R

lor_leaderboardR Documentation

Return Leaderboard

Description

Return the leaderboard of Master players Wraps the leaderboard api method. The leaderboard is updated once an hour.

Usage

lor_leaderboard(server, names = FALSE, ...)

Arguments

server,

a character, must be one of americas,europe,sea or asia,apac

names

a logical, is TRUE return only the a vector of players names.

...

additional paramter for RETRY function, at the moment are timeout, times, pause_base, pause_cap, pause_min,

Details

Standard RATE LIMITS 20 requests every 1 seconds(s) / 100 requests every 2 minutes(s) - Developer Key 500 requests every 10 seconds / 30,000 requests every 10 minutes - Production Key

Method RATE LIMITS X-Method-Rate-Limit": "30:10,500:600 - Developer Key X-Method-Rate-Limit": "500:10,30000:600 - Production Key

Value

a data frame n x3 with n equal to the number of current Master players name - gameName of the player rank - rank on the leaderboard starting from 0 to n-1 lp - League Points of a player

Examples

## Not run: 
# lor_leaderboard("europe",names = TRUE)
# lor_leaderboard("americas")

## End(Not run)

MaouLegna/lorR documentation built on Nov. 21, 2022, 8:58 a.m.