get_CFB_json_from_url: Makes call to CollegeFootballData.com API and returns the...

Description Usage Arguments

View source: R/get_CFB_json_from_url.R

Description

Gets desired data as JSON

Usage

1
2
get_CFB_json_from_url(urlPath, queryParams = NULL,
  cacheLocation = NULL, cacheTimeSec = 0)

Arguments

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.


zmalosh/CollegeFootballDataR documentation built on Nov. 5, 2019, 1:28 p.m.