get_live_league_games {RDota2} | R Documentation |
Information about Live League Matches
Description
In-game League Matches and Information about them.
Usage
get_live_league_games(dota_id = 570, language = "en", key = NULL)
Arguments
dota_id |
Can take one of three values.
|
language |
The ISO639-1 language code for returning all the information in the corresponding language. If the language is not supported, english will be returned. For a complete list of the ISO639-1 language codes please visit https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes. |
key |
The api key obtained from Steam. If you don't have one please visit
https://steamcommunity.com/dev in order to do so. For instructions on the correct way
to use this key please visit https://github.com/LyzandeR/RDota2 and check the readme file.
You can also see the examples. A key can be made available to all the functions by using
|
Details
A list will be returned that contains three elements. The content (a huge list with all the games), the url and the response received from the api.
The content element of the list contains a games list which has information about the live league games. Each element of the games list is a game. Each game consists of the following sections (list elements):
-
players: A list of lists containing information about the players.
-
radiant_team: A list with information about the radiant team.
-
dire_team: A list with information about the dire team..
-
lobby_id: The lobby id.
-
match_id: The match id.
-
spectators: The number of spectators.
-
series_id: The series id.
-
game_number: The game number.
-
league_id: The league id.
-
stream_delay_s: The stream delay in secs.
-
radiant_series_wins: Radiant series wins.
-
dire_series_wins: Dire series wins.
-
series_type: Series type.
-
league_series_id: The league series id.
-
league_game_id: The league game id.
-
stage_name: The name of the stage.
-
league_tier: League tier.
-
scoreboard: A huge list containing scoreboard information.
Value
A dota_api object containing the elements described in the details.
Steam API Documentation
https://wiki.teamfortress.com/wiki/WebAPI/GetLiveLeagueGames
Examples
## Not run:
get_live_league_games()
get_live_league_games(language = 'en', key = NULL)
get_live_league_games(language = 'en', key = 'xxxxxxxxxxx')
## End(Not run)