lx_GET: GET request

Description Usage Arguments Value

View source: R/http_verbs.R

Description

GET request

Usage

1
lx_GET(selector = "all", endpoint, token = lx_get_token())

Arguments

selector

'LIFX' api "selector" such as "all", "id:12345", or "location:kitchen". Can be created with lx_selector or written manually (see https://api.developer.lifx.com/docs/selectors

endpoint

the API endpoint to call; basically the last part of the API url after the light selector

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

an 'httr' response object (see response)


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