Description Usage Arguments Details Value Steam API Documentation Examples
View source: R/get_league_listing.R
Information about DotaTV-supported leagues.
1 | get_league_listing(dota_id = 570, language = "en", key = NULL)
|
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
|
A list will be returned that contains three elements. The content, the url and the response received from the api.
The content is probably the most useful part for the user since it is a data.frame containing the information about the DotaTV-supported leagues. It consists of the five following columns:
name: The league name.
leagueid: The ID of the league (unique).
description: A description containing information about the league.
tournament_url: The website of the link.
itemdef: Not documented on the API.
A dota_api object containing the elements described in the details.
https://wiki.teamfortress.com/wiki/WebAPI/GetLeagueListing
1 2 3 4 5 6 | ## Not run:
get_league_listing()
get_league_listing(language = 'en', key = NULL)
get_league_listing(language = 'en', key = 'xxxxxxxxxxx')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.