| getFormations | R Documentation |
Return a dataframe that contains all starting formations for a set of given match IDs
getFormations(matches, token, host = "https://api.impect.com")
matches |
'IMPECT' match ID or a list of match IDs |
token |
bearer token |
host |
host environment |
a dataframe containing all starting formations for a set of given match IDs
# Toy example: this will error quickly (no API token)
try(events <- getFormations(
matches = c(0, 1),
token = "invalid"
))
# Real usage: requires valid Bearer Token from `getAccessToken()`
## Not run:
formations <- getFormations(
matches = c(84248, 158150),
token = "yourToken"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.