request_token: Request authorization token

Description Usage Arguments Value

View source: R/auth.R

Description

After you obtain an authorization code (see authorize_at()), use the code to obtain an authorization token.

Usage

1
2
3
request_token(auth_code = Sys.getenv("PHILIPS_HUE_AUTH_CODE"),
  client_id = Sys.getenv("PHILIPS_HUE_CLIENT_ID"),
  client_secret = Sys.getenv("PHILIPS_HUE_CLIENT_SECRET"))

Arguments

auth_code

authorization code sent to your app's callback URL (see authorize_at())

client_id

your app's client ID (assigned when you registered your app with Hue)

client_secret

your app's client secret (assigned when you registered your app with Hue)

Value

If successful, returns a list with authorization/refresh tokens and expiration times


fascinatingfingers/PhilipsHue documentation built on Nov. 25, 2019, 2:22 a.m.