get_player_data: A function to fetch the match data of a specific player

View source: R/get_player_data.R

get_player_dataR Documentation

A function to fetch the match data of a specific player

Description

A function to fetch the match data of a specific player

Usage

get_player_data(player_id, match_vec, wait_time = 1, summary_info = TRUE)

Arguments

player_id

The numeric ID of your Dota 2 account, numeric

match_vec

A numeric vector of at least one match ID, numeric

wait_time

Wait time between API calls, numeric, default to 1s

summary_info

Set to TRUE if you want summary information about how many of the requested matchs are parsed by OpenDota, how many error occured when calling the API, etc.

Value

The function returns a nested list. Each element in the list is a parsed JSON file of a match.

Examples

## Not run: 
get_player_data(123456, 123456)

## End(Not run)

## Not run: 
get_player_data(123456, c(123456, 78910))

## End(Not run)


huayingq1996/DotaR documentation built on March 31, 2022, 2:03 a.m.