auth_remote: Authentication - remote

Description Usage Arguments Value See Also

View source: R/auth.R

Description

TODO

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
auth_remote(app_id = Sys.getenv("PHILIPS_HUE_APP_ID"),
  client_id = Sys.getenv("PHILIPS_HUE_CLIENT_ID"),
  client_secret = Sys.getenv("PHILIPS_HUE_CLIENT_SECRET"),
  bridge_id = Sys.getenv("PHILIPS_HUE_BRIDGE_ID"),
  bridge_name = Sys.getenv("PHILIPS_HUE_BRIDGE_NAME"),
  username = Sys.getenv("PHILIPS_HUE_BRIDGE_REMOTE_USERNAME"),
  access_token = Sys.getenv("PHILIPS_HUE_ACCESS_TOKEN"),
  access_token_exp = Sys.getenv("PHILIPS_HUE_ACCESS_TOKEN_EXP"),
  refresh_token = Sys.getenv("PHILIPS_HUE_REFRESH_TOKEN"),
  refresh_token_exp = Sys.getenv("PHILIPS_HUE_REFRESH_TOKEN_EXP"),
  initial_setup = interactive())

Arguments

app_id

your app's ID (the name you registered your app under)

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)

bridge_id

ID of hue bridge you'd like remote access to

bridge_name

name of hue bridge you'd like remote access to

username

TODO

access_token

access token returned from request_token() (or a subsequent refresh_token())

access_token_exp

access token expiration time returned from request_token() (or a subsequent refresh_token())

refresh_token

refresh token returned from request_token() (or a subsequent refresh_token())

refresh_token_exp

refresh token expiration time returned from request_token() (or a subsequent refresh_token())

initial_setup

if TRUE, and initial app authorization is required, auth_remote() will prompt the user to authorize the app and enter the auth code manually

Value

Returns TRUE (invisibly) if options were successfully set

See Also

https://developers.meethue.com/develop/hue-api/remote-api-quick-start-guide/


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