View source: R/get_CFB_json_from_url.R
Gets desired data as JSON
1 2 | get_CFB_json_from_url(urlPath, queryParams = NULL,
cacheLocation = NULL, cacheTimeSec = 0)
|
urlPath |
The path (no root) for the desired resource. Venues would pass in 'venues'. |
queryParams |
A named list with the desired query parameters. list(year=2016, week=1) will result in ?year=2016&week=1 being used as the query string. |
cacheLocation |
A check for a cached JSON response. This method does not currently cache on its own. |
cacheTimeSec |
Time in seconds that will result in the cache being ignored. A value of 30 will result in cached values being ignored if created over 30 seconds ago. A value of 0 mean no expiration. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.