| drop_share {rdrop2} | R Documentation |
Creates and returns a shared link to a file or folder.
drop_share(path = NULL, requested_visibility = "public", link_password = NULL, expires = NULL, dtoken = get_dropbox_token())
path |
This is required The path to the new folder to create 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 |
## 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)