Learn R Programming

rdrop2 (version 0.6)

drop_share: Creates and returns a shared link to a file or folder.

Description

Returns a list with the share url, expires, and visibility.

Usage

drop_share(path = NULL, locale = NULL, short_url = TRUE,
  dtoken = get_dropbox_token())

Arguments

path
This is required The path to the new folder to create relative to root.
locale
Dropbox uses the locale parameter to specify language settings of content responses. If your app supports any language other than English, insert the appropriate IETF language tag. When a supported language is specified, Dropbox will returned translated s
short_url
By default the function return shortened URL. Set to FALSE if you require a full path.
dtoken
The Dropbox token generated by drop_auth. rdrop2 will try to automatically locate your local credential cache and use them. However, if the credentials are not found, the function will initiate a new auth

Examples

Run this code
write.csv(mtcars, file = "mt.csv")
drop_upload("mt.csv")
drop_share("mt.csv")

Run the code above in your browser using DataLab