Description Usage Arguments Value References Examples
This function authenticates you into Dropbox. The documentation for the core Dropbox API provides more details including alternate methods if you desire to reimplement your own.
1 2 3 4 5 6 7 |
new_user |
Set to |
key |
Your application key. |
secret |
Your application secret. Like |
cache |
By default your credentials are locally cached in a file called
|
rdstoken |
File path to stored RDS token. In server environments where interactive OAuth is not possible, a token can be created on a desktop client and used in production. See examples. |
A Token2.0 object, invisibly
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# To either read token from .httr-oauth in the working directory or open a
# web browser to authenticate (and cache a token)
drop_auth()
# If you want to overwrite an existing local token and switch to a new
# user, set new_user to TRUE.
drop_auth(new_user = TRUE)
# To store a token for re-use (more flexible than .httr-oauth), save the
# output of drop_auth and save it to an RDS file
token <- drop_auth()
saveRDS(token, "/path/to/tokenfile.RDS")
# To use a stored token provide token location
drop_auth(rdstoken = "/path/to/tokenfile.RDS")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.