ops_dropbox_upload: Upload a file to dropbox

Description Usage Arguments Examples

View source: R/ops_dropbox.R

Description

You will need to setup an app before using this function. Set scopes appropriately for your use case, then generate a token (in that order).

Usage

1
ops_dropbox_upload(path, dropbox_path, token, with_response = FALSE)

Arguments

path

The location of the file to upload

dropbox_path

The location to upload the file to in the app or user's dropbox folder. Do not prepend with "/". For example: a_folder/on/dropbox/file.ext. The complete filename is required including the file extension.

token

The dropbox app token

with_response

Should the response from the Dropbox API be returned? If TRUE, returns an R list converted from the JSON API response from the dropbox API.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
  ops_dropbox_upload(
    path = "/full/path/to/file.ext",
    dropbox_path = "test/file.ext",
    token = token,
    with_response = FALSE
  )

## End(Not run)

1beb/operations documentation built on Dec. 17, 2021, 5:28 a.m.