lor_match_metadata: Get the Match Metadata

View source: R/lor_match_metadata.R

lor_match_metadataR Documentation

Get the Match Metadata

Description

Given a server amd a match_id, return the Match Metadata of a match Wraps the GET_getMatch api method.

Usage

lor_match_metadata(
  server,
  match_id,
  format = "parsed",
  maxPause = 10,
  wait = T,
  verbose = T,
  ...
)

Arguments

server,

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

match_id

a character, string for match_id, a string of 36char

format

a character, format of the output, must be: parsed: tibble of n row for n match long: tibble of p row for each participant in a match text: as the original json from the API request

maxPause

a numeric, in case of a call with status 429, what's the max wait it can take? default is 10s. With a developer key 120 is the suggested.

wait

a logical, if TRUE (the default), if the pause is of less or equal to 10s it waits and repeat the call once

verbose

should be function be verbose and print messages

...

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

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

Method RATE LIMITS 100:3600 - 200 requests every 1 hours - Developer Key 30:10 - 30 requests every 10 seconds - Production Key (not fixed ratio for all Production Keys)

Value

a tibble

Examples

## Not run: 
server <-  "europe"
match_id <- "44a130ae-12f4-45f8-8a24-0b319265d616"
lor_match_metadata(server=server,match_id=match_id)
lor_match_metadata(server=server,match_id=match_id,format="text")
lor_match_metadata(server=server,match_id=match_id,format="long")

## End(Not run)

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