lx_rate_limit: get 'LIFX' API rate limit

Description Usage Arguments Value Examples

View source: R/rate_limit.R

Description

get 'LIFX' API rate limit

Usage

1

Arguments

token

API token (see ?lx_save_token). If left empty, the token is retrieved from the environmental variable if available. (see lx_save_token)

Value

a named vector of three numbers:

1. 'limit': The rate limit 2. 'remaining': how many calls are remaining 3. 'reset': the Unix timestamp for when the next window begins. Usually every minute.

Examples

1
## Not run: lx_rate_limit()

lifx documentation built on July 1, 2020, 6:08 p.m.