R wrapper for Halo 5 and Halo Wars 2 public API
R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
man
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
README.md
h5api.Rproj

README.md

HALO API R Package

Provides easy access to the Halo 5 and Halo Wars 2 web APIs provided by 343i.

A developer API key is required to use this package. You can get one from here

Package documentation is rather sparse so I recommend using Microsoft's official API documentation.

Installation:

install.packages(c("devtools","httr","jsonlite"))
library(devtools)
install_github("cluoma/haloR")

Example:

library(dplyr)
library(haloR)

key <- "XXXXXXXXXXXXXXXXXXXXX"
player <- "CLWakaLaka"

profile <- h5_ServiceRecord(mode = "arena", player, key = key)

print(paste0(
  player, " has an overal K/D ratio of ",
  round(profile$Results$Result$ArenaStats$TotalKills /
          profile$Results$Result$ArenaStats$TotalDeaths,
        digits=2)
))