Description Usage Arguments References Examples
Creates and returns a shared link to a file or folder.
1 2 3 4 5 6 7 | drop_share(
path = NULL,
requested_visibility = "public",
link_password = NULL,
expires = NULL,
dtoken = get_dropbox_token()
)
|
path |
Path in the user's Dropbox, relative to root |
requested_visibility |
Can be 'public', 'team_only', or 'password'. If the password option is chosen one must specify the 'link_password'. Note that for basic (i.e. free) Dropbox accounts, the only option is to publicly share. Private sharing requires a pro account. |
link_password |
The password needed to access the document if 'request_visibility' is set to password. |
expires |
Set the expiry time. The timestamp format is "%Y-%m-%dT%H:%M:%SZ"). If no timestamp is specified, link never expires |
dtoken |
The Dropbox token generated by |
1 2 3 4 5 6 7 8 | ## Not run:
write.csv(mtcars, file = "mt.csv")
drop_upload("mt.csv")
drop_share("mt.csv")
# If you have a pro account, you can share files privately
drop_share("mt.csv", requested_visibility = "password", link_password = "test")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.