Description Usage Arguments Value See Also Examples
Get data from the API for one or more URLs
1 | nhl_get_data(urls, flatten = getOption("nhlapi_flatten"))
|
urls |
|
flatten |
|
list
, results retrieved using nhl_get_data_worker()
.
One element per url. The elements contain the retrieved data
if retrieval succeeded, otherwise an nhl_get_data_error
class
object.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
nhl_get_data(c(
"https://statsapi.web.nhl.com/api/v1/teams/1",
"https://statsapi.web.nhl.com/api/v1/people/8477474"
))
nhl_get_data(
"https://statsapi.web.nhl.com/api/v1/teams/1",
flatten = FALSE
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.