get_top_live_game: Top Live Games

Description Usage Arguments Details Value Steam API Documentation Examples

Description

Returns the top live games by MMR.

Usage

1
2
get_top_live_game(partner = 1, dota_id = 570, language = "en",
  key = NULL)

Arguments

partner

The documentation does not specify what this parameter should be but it seems like numbers from 1-3 return results of live games.

dota_id

Can take one of three values.

  • 570 - Dota 2 (default)

  • 816 - Dota 2 Internal Test

  • 205790 - Dota 2 Beta Test

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 key_actions. The key argument in individual functions should only be used in case the user needs to work with multiple keys.

Details

A list will be returned that contains three elements. The content, the url and the response received from the api.

The content element of the list contains a games_list list which contains information about the top live games. The following information is provided for each game (Categories are not documented at the time of the release - please check the Steam API Documentation link below:

Value

A dota_api object containing the elements described in the details.

Steam API Documentation

https://wiki.teamfortress.com/wiki/WebAPI/GetTopLiveGame

Examples

1
2
3
4
5
6
## Not run: 
get_top_live_game(partner = 1)
get_top_live_game(partner = 1, language = 'en', key = NULL)
get_top_live_game(partner = 2, language = 'en', key = 'xxxxxxxxxxx')

## End(Not run)

LyzandeR/RDota2 documentation built on May 7, 2019, 2:03 p.m.