get_game_items {RDota2} | R Documentation |
Dota Items
Description
Dota Items.
Usage
get_game_items(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, the url and the response received from the api.
The content element of the list contains a data.frame with all the items. Each row of the data.frame is an item and the following columns are included:
-
id: Item's ID.
-
name: Item's tokenised name.
-
cost: Item's in-game cost.
-
secret_shop: Boolean. Whether it is sold in the secret shop.
-
side_shop: Boolean. Whether it is sold in the side shop.
-
recipe: Boolean. Whether it is a recipe.
-
localized_name: Localised name of item.
Value
A dota_api object containing the elements described in the details.
Steam API Documentation
https://wiki.teamfortress.com/wiki/WebAPI/GetGameItems
Examples
## Not run:
get_game_items()
get_game_items(dota_id = 570, language = 'en', key = NULL)
get_game_items(dota_id = 570, language = 'en', key = 'xxxxxxxxxxx')
## End(Not run)