"Dropbox" (Service Connection)
Connect your Dropbox account to the Wolfram Language to read and write 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
"Upload" — add or update the contents of a file
"Put" — put a Wolfram Language expression in a file
"File" | (required for Upload) | file path or File[...] | |
"Expression" | (required for Put) | Wolfram Language expression | |
"Path" | (required) | path in dropbox account | |
"Mode" | "Add" | write mode ("Add", "Overwrite" or "Update") | |
"Autorename" | True | rename if there is a name conflict |
Downloading
"Get" — get a Wolfram Language expression from a file
"FileContents" — get the raw contents of a file as a byte array
"Path" | (required) | path in dropbox account | |
"Destination" | $TemporaryDirectory | path to download the file |
Files and Directories
"FileNames" — list the files in a directory
"DirectoryData" — directory metadata
"CreateDirectory" — create a directory
"DeleteDirectory" — delete a directory
"Path" | (required) | path in dropbox account | |
"Recursive" | False | whether to recursively list files in a directory |