R/aoe2_number_of_players_online.r

Defines functions aoe2_number_of_players_online

Documented in aoe2_number_of_players_online

#' aoe2_number_of_players_online
#'
#' This function gives you a list of player activity of the last 28 days for every 5min.
#'
#' More Information about aoe2.net api at https://aoe2.net/#api
#' @param game Default is aoe2de since the api is mostly used for that.
#' @keywords aoe2_number_of_players_online
#' @export
#' @examples
#' aoe2_number_of_players_online()

aoe2_number_of_players_online <- function(game="aoe2de") {

  jsonlite::fromJSON(
    paste0("https://aoe2.net/api/stats/players?",
                     "?game=",game)
    )

}
johannes4998/aoe2dotnetapi documentation built on Aug. 20, 2021, 8:31 p.m.