Dropbox
Connect & Ingest data from Dropbox
Last updated
Was this helpful?
Was this helpful?
# Step 1: Open this URL in your browser and authorize the app
# Replace <APP_KEY> with your App key
https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&response_type=code&token_access_type=offline
# Step 2: Exchange the authorization code for a refresh token
curl -X POST https://api.dropboxapi.com/oauth2/token \
-d code=<AUTH_CODE> \
-d grant_type=authorization_code \
-d client_id=<APP_KEY> \
-d client_secret=<APP_SECRET>sling conns set DROPBOX type=api spec=dropbox secrets='{ client_id: your_app_key, client_secret: your_app_secret, refresh_token: your_refresh_token }'export DROPBOX='{ type: api, spec: dropbox, secrets: { client_id: "your_app_key", client_secret: "your_app_secret", refresh_token: "your_refresh_token" } }'connections:
DROPBOX:
type: api
spec: dropbox
secrets:
client_id: "your_app_key"
client_secret: "your_app_secret"
refresh_token: "your_refresh_token"source: DROPBOX
target: MY_POSTGRES
defaults:
mode: full-refresh
object: dropbox.{stream_name}
streams:
current_account:
files:
shared_links:
shared_folders:
received_files:
file_requests:source: DROPBOX
target: MY_POSTGRES
defaults:
mode: full-refresh
object: dropbox.{stream_name}
streams:
'*':sling conns discover DROPBOX