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

Description Usage Arguments Value See Also Examples

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

1
2
  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

1
2
3
4
5
6
7
8
9
## 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'

## End(Not run)

karthik/rDrop documentation built on May 20, 2019, 7:22 a.m.