Dropbox Samples via REST API

Contributed by @dshen


This pattern contains 3 separate segments that demonstrate how to use the REST API to:

  • list folder contents
  • download a file from Dropbox
  • upload a file to Dropbox

Source: Dropbox Files
Target: Dropbox Files
Snaps used: JSON Generator, REST Post, JSON Splitter, Mapper, Document to Binary, CSV Parser

Configuration

  1. Supply a Dropbox Bearer Token in the pipeline parameters.

  2. To list the contents of a folder, supply the Dropbox file path and other parameters in the JSON Generator so it can be passed to Dropbox as the request payload.

  3. For uploading a file to Dropbox, this pipeline assumes the file was uploaded to SnapLogic.

Reference