View source: R/get_riotId_from_puuid.R
get_riotId_from_puuid | R Documentation |
Given the primary key, a PUUID, return the RiotID of a player in gameName and tagLine. Wraps the GET_getByPuuid api method.
get_riotId_from_puuid(puuid, server = "americas", format = "parsed", ...)
puuid |
|
server |
a character, must be one of americas,europe,sea or asia,apac |
format |
format of the output: parsed - as a vector of only the puuid long - as a tibble with all the elements from the GET request, named column puuid,gameName,tagLine text - as the original json from the API request id - as the format gameName#tagLine |
... |
additional paramter for RETRY function, at the moment are timeout, times, pause_base, pause_cap, pause_min, |
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 1000 requests every 1 minutes - Developer Key 1000 requests every 1 minutes - Production Key
depending on the format chosen return the information for the RiotID. When encountering a status code different from 200 the output is NA
## Not run: puuid <- "kJKtE_3i_66edP3lUYSW3wOVxIl5sRKFhsF6IpNIX_RQxYmyBZxG94gNuR4dUe-ofBq_zy5Yll_gSw" get_riotId_from_puuid(puuid) get_riotId_from_puuid(puuid, format="long") get_riotId_from_puuid(puuid, format="id") badPuuid <- "kJKtE_3i_66edP3lUYSW3wOVxIl5sRKFhsF6IpNIX_RQxYmyBZxG94gNuR4dUe-ofBq_zy5Yll_gST" get_riotId_from_puuid(badPuuid) # should return a warning ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.