Learn R Programming

rdrop2 (version 0.7.0)

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 size and/or user_error fields (where applicable)
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 authentication request. You can override this by pointing to a different location where your credentials are stored.

Examples

Run this code
## Not run: 
# write.csv(mtcars, file = "mt.csv")
# drop_upload("mt.csv")
# drop_share("mt.csv")
# ## End(Not run)

Run the code above in your browser using DataLab