| getSetPieces | R Documentation |
Return a dataframe that contains all set pieces and aggregated kpi values per set piece sub phase for a set of given list of match IDs
getSetPieces(matches, token, host = "https://api.impect.com")
matches |
list fo 'IMPECT' match IDs |
token |
bearer token |
host |
host environment |
a dataframe containing all set pieces and aggregated kpi values per set piece sub phase for a set of given list of match IDs
# Toy example: this will error quickly (no API token)
try(set_pieces <- getSetPieces(
matches = c(0, 1),
token = "invalid"
))
# Real usage: requires valid Bearer Token from `getAccessToken()`
## Not run:
set_pieces <- getSetPieces(
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.