Skip to contents

Get player info given a player ID

Usage

get_player(player_id)

Arguments

player_id

Player ID

Value

a list with the following elements

Examples

# \donttest{
yay <- get_player(2716)
dplyr::glimpse(yay)
#> Rows: 1
#> Columns: 19
#> $ id                    <int> 2716
#> $ ign                   <chr> "yay"
#> $ firstName             <chr> "Jaccob "
#> $ lastName              <chr> "Whiteaker"
#> $ bio                   <chr> "Jaccob \"yay\" Whiteaker is an American player …
#> $ countryId             <int> 226
#> $ twitchUrl             <chr> "https://www.twitch.tv/yayisreal"
#> $ twitterUrl            <chr> "https://twitter.com/yayFPS"
#> $ imageUrl              <chr> "https://i.imgur.com/831bo4j.webp"
#> $ firestoreId           <chr> "q90rD7XX8VW2aeoaLn9l"
#> $ teamPlayerHistoryId   <int> 62381
#> $ teamId                <int> 9470
#> $ startDate             <chr> "2023-04-10T00:00:00.000Z"
#> $ role                  <chr> "player"
#> $ igl                   <lgl> FALSE
#> $ previousRiotPlayerIds <list> <"4qhP3SAGywYPl3UYacEuagImQvGcL9dJLvk34dpxSm4MfH…
#> $ team                  <list> [9470, "Disguised", "DSG", "", "", "https://i.im…
#> $ career                <list> [<data.frame[5 x 8]>]
#> $ news                  <list> [<data.frame[5 x 4]>]
# }