api_limits: API limits

Description Usage Arguments Details References Examples

View source: R/api_limits.R

Description

Check NYT API limits and current usage.

Usage

1
api_limits(api = "as", key = NULL)

Arguments

api

Which API to check, either "as" or "geo".

key

Your New York Times API key; pass in, or loads from .Renviron as NYTIMES_AS_KEY.

Details

Check the API daily limit and how many calls have already been consumed. Each check consumes one API call by itself.

References

https://developer.nytimes.com/faq#9

Examples

1
2
3
4
## Not run: 
api_limits("as")

## End(Not run)

ropengov/rtimes documentation built on July 21, 2019, 5:27 a.m.