Dropbox Download
by @foundergraph
Download a file from Dropbox by providing its file path, returning the file content as binary data.
clawhub install dropbox-downloadπ About This Skill
Dropbox Download
Download files from Dropbox using the /2/files/download endpoint.
Description
This skill downloads a file from a user's Dropbox account. It accepts a file path and an optional revision identifier.
IO
| Field | Type | Description | |-------|------|-------------| | path | string | The path of the file to download (required) | | rev | string | Optional revision identifier (deprecated, specify in path instead) | | result | binary | The downloaded file content |
Configuration
dropbox (OAuth2)/2/files/downloadUsage
from typing import Annotateddef run(
pipedream: Annotated[PipedreamAuth, Integration("dropbox")],
path: Annotated[str, "The path of the file to download."],
rev: Annotated[str | None, "Please specify revision in path instead."] = None,
):
# Track initial props for reload comparison
initial_props = {
"dropbox", "path", "rev",
}
state_manager = PipedreamStateManager(pipedream, "Download File", initial_props, {})
state_manager.add_prop("dropbox", {"authProvisionId": pipedream.auth_provision_id})
state_manager.add_prop("path", path)
rev_config = state_manager.resolve_prop("rev", rev, use_query=False, use_lv=False)
state_manager.add_prop("rev", rev_config)
return state_manager.run()
Notes
rev parameter is deprecated; specify revision in the path instead.files.content.read scope.License
MIT
π‘ Examples
from typing import Annotateddef run(
pipedream: Annotated[PipedreamAuth, Integration("dropbox")],
path: Annotated[str, "The path of the file to download."],
rev: Annotated[str | None, "Please specify revision in path instead."] = None,
):
# Track initial props for reload comparison
initial_props = {
"dropbox", "path", "rev",
}
state_manager = PipedreamStateManager(pipedream, "Download File", initial_props, {})
state_manager.add_prop("dropbox", {"authProvisionId": pipedream.auth_provision_id})
state_manager.add_prop("path", path)
rev_config = state_manager.resolve_prop("rev", rev, use_query=False, use_lv=False)
state_manager.add_prop("rev", rev_config)
return state_manager.run()
βοΈ Configuration
dropbox (OAuth2)/2/files/downloadπ Tips & Best Practices
rev parameter is deprecated; specify revision in the path instead.files.content.read scope.