Main function to grab data from Blizzard's API. At the bare minimum, you must provide the endpoint (see: Blizzard's API docs). You may also provide a valid locale and namespace. Finally, you may view the data as a JSON object i.e. blizz("/some/endpoint", json = TRUE) or as a R object (default) i.e. blizz("/some/endpoint").

blizz(endpoint, locale = "en_US", namespace = NULL, json = FALSE,
  quiet = FALSE)

Arguments

endpoint

An endpoint provided by Blizzards API documentation

locale

All available API resources provide localized strings using the locale query string parameter. Supported locales vary from region to region and align with those supported on Blizzard community sites. Defaults to "en_US".

namespace

Namespaces in Game Data and Profile APIs that allow JSON documents to be published contextually in relation to a specific patch or point in time. Defaults to NULL.

json

Logical TRUE/FALSE to return a JSON object or a R object, defaults to R.

quiet

If FALSE, request information will not print. Defaults to TRUE.