R/gameschema.R

#' Game Data
#' 
#' Data about a specific game
#' @export
#' @import data.table
#' @import rjson
#' @param key Steam API key
#' @param gameid Steam game ID

gameschema <- function (key,gameid = "377160") {

  url <-
    paste("http://store.steampowered.com/api/appdetails/?appids=",gameid,sep =
            "")
  
  list <-
    suppressWarnings(fromJSON(paste(readLines(url), collapse = "")))
  list <- list[[gameid]]
  list <- list$data
  list
  
}
drewlake/steamR documentation built on May 15, 2019, 1:57 p.m.