"Dropbox" (Service Connection)
Connect your Dropbox account to the Wolfram Language to read, modify, analyze, and create files in your Dropbox file directory.
Connecting & Authenticating
ServiceConnect["Dropbox"] creates a connection to the Dropbox API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.
Requests
ServiceExecute["Dropbox","request",params] sends a request to the Dropbox API, using parameters params. The following give possible requests.
User Data
"UserData" — data about the authenticated user's account
Search
"FileSearch" — search file names within a directory
"Query" | (required) | query string | |
"Path" | "/" | directory to search |
Uploading
"DataUpload" — add or update the contents of a file
"GraphicsUpload" — add or update an image file
"Data" | (required for DataUpload) | file contents | |
"Graphics" "Path" "Mode" "Autorename" | (required for GraphicsUpload) (required) "Add" True | image or graphics directory to search file write mode ("Add", "Overwrite", "Update") rename existing file |
Downloading
"FileContents" — get the raw contents of a file
"Path" | (required) | directory to search |
File and Directory Exploring
"FileNames" — list the files in a directory
"DirectoryData" — directory metadata
"DirectoryTreePlot" — tree plot showing the layout of files in a directory
"Path" "Recursive" | "/" False | directory to search recursively search directory |