api_call: LoR-API Handler

View source: R/api_call.R

api_callR Documentation

LoR-API Handler

Description

This function helps you handling the REST API for the LoR API methods

Usage

api_call(server, path, ..., api_key = Sys.getenv("LORAPI_KEY"))

Arguments

server,

a character, must be one of americas,europe,sea or asia,apac

path

a character, string containing the path of the methods of choice. Please refer to the developer portal

...

additional paramter for RETRY function, at the moment are timeout, times, pause_base, pause_cap, pause_min,

api_key

a environment variables.

Details

#' Standard RATE LIMITS 20 requests every 1 seconds(s) / 100 requests every 2 minutes(s) - Developer Key 500 requests every 10 seconds / 30,000 requests every 10 minutes - Production Key

2022-02-20: As a consequences of very long wait and response for Sea I'm testing a different

Value

a response

Examples

## Not run: 
api_call("europe","/lor/ranked/v1/leaderboards/") # not run
api_call("europe","/lor/ranked/v1/leaderboards/",timeout(3),times=3,quiet=FALSE)

## End(Not run)

MaouLegna/lorR documentation built on Nov. 21, 2022, 8:58 a.m.