lx_rate_limit {lifx}R Documentation

get 'LIFX' API rate limit

Description

get 'LIFX' API rate limit

Usage

lx_rate_limit(token = lx_get_token())

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

## Not run: lx_rate_limit()

[Package lifx version 0.2.0 Index]