Learn R Programming

rDrop (version 0.3-0)

dropbox_share: Creates and returns a shareable link to files or folders.

Description

Returns a list containing the URL to a zipped copy of a folder or a direct link in case input is a file. Also returns a date when link will expire.

Usage

dropbox_share(cred, file = NULL, curl = getCurlHandle(),
    ...)

Arguments

cred

An object of class DropboxCredentials with Dropobox specific credentials.

file

Path to the file or folder you want a shareable link to.

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

...

optional additional curl options (debugging tools mostly).

Value

list with url to file or zipped folder and expiry date.

See Also

dropbox_media

Examples

Run this code
# NOT RUN {
dropbox_share(cred, 'test_folder')
> dropbox_share(db_cred, 'test_works/test.csv')
$url
[1] 'http://db.tt/vlwCtRxr'
$expires
[1] 'Sat, 28 Apr 2012 20:55:42 +0000'
# }

Run the code above in your browser using DataLab