Description Usage Arguments Note References See Also Examples
Provides start and ending times for a given season.
1 | get_season_data(season_id, host_region = "us")
|
season_id |
A numeric argument indicating a particular ladder season. Currently, league data is only available for season 28 and higher (i.e. data prior to this season is inaccessible). |
host_region |
The host region that the API call will be sent to. For |
Season data is only available for season 28 and higher.
Other game data API calls:
get_ladder_data()
,
get_league_data()
1 2 3 4 5 6 | # Get season start and end times for season 35 in the European region.
try({
data <- get_season_data(season_id = 35, host_region = "eu")
as.POSIXct(data$start_timestamp, origin = "1970-01-01")
as.POSIXct(data$end_timestamp, origin = "1970-01-01")
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.