Description Usage Arguments Value
After you obtain an authorization code (see authorize_at()
), use the code
to obtain an authorization token.
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"))
|
auth_code |
authorization code sent to your app's callback URL (see
|
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) |
If successful, returns a list with authorization/refresh tokens and expiration times
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.