Learn R Programming

lifx (version 0.2.0)

lx_rate_limit: 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

Run this code
# NOT RUN {
lx_rate_limit()
# }

Run the code above in your browser using DataLab