Posted 28 April 2014 - 04:27 PM
I know there are several Dropbox programs out there but I feel this one is better as it contains more features:
Download: Download single files or entire directories.
Copy and Move: Copy and move files or folders on your Dropbox folder straight from the command line
Delete: Delete files and folders on your Dropbox
Make directories: Create a directory on your Dropbox
List: Print out the contents of any folder on your Dropbox
Share: Share files or folders with all other users.
Use more than one account: Ability to use multiple config files, and so use multiple accounts.
For more information visit https://github.com/SquidDev/ComputerCraft-Dropbox
To use
Run pastebin EA91Mdj6 dropbox
Create an app at https://www.dropbox.com/developers/apps/create
- Select 'Dropbox API App'
- Select 'Files and datastore'
- You can chose whether it has access to your entire Dropbox, or its own folder. I would recomend its own folder as this means others cannot access your whole Dropbox.
- If you selected entire dropbox then select all file types.
- Name your app. Make a note your app key and app secret
- Run dropbox and follow the instructions
Security Info:
This script doesn't store your username but instead uses the Dropbox API (https://www.dropbox.com/developers/core). This means that if someone can get access to your dropbox_config (or other config file) then they can use the same script. As it doesn't store your password or username they can only access what you let your app access.
If you are on a non-whitelist server you SHOULD select 'app folder' when creating an app so people cannot access your entire Dropbox. You may also wish to encrypt the dropbox_config file.
Uploading: The http API seems to have some trouble accessing https://api-content.dropbox.com/ which is required for uploading so I am having trouble with uploading. Any fix welcome.
On a side note:
Dropbox also contains a Datastore API (https://www.dropbox.com/developers/datastore). This allows you to store tables on the internet - maybe a useful substitute for rednet. Or even inter-server rednet?
Download: Download single files or entire directories.
Copy and Move: Copy and move files or folders on your Dropbox folder straight from the command line
Delete: Delete files and folders on your Dropbox
Make directories: Create a directory on your Dropbox
List: Print out the contents of any folder on your Dropbox
Share: Share files or folders with all other users.
Use more than one account: Ability to use multiple config files, and so use multiple accounts.
For more information visit https://github.com/SquidDev/ComputerCraft-Dropbox
To use
Run pastebin EA91Mdj6 dropbox
Create an app at https://www.dropbox.com/developers/apps/create
- Select 'Dropbox API App'
- Select 'Files and datastore'
- You can chose whether it has access to your entire Dropbox, or its own folder. I would recomend its own folder as this means others cannot access your whole Dropbox.
- If you selected entire dropbox then select all file types.
- Name your app. Make a note your app key and app secret
- Run dropbox and follow the instructions
Security Info:
This script doesn't store your username but instead uses the Dropbox API (https://www.dropbox.com/developers/core). This means that if someone can get access to your dropbox_config (or other config file) then they can use the same script. As it doesn't store your password or username they can only access what you let your app access.
If you are on a non-whitelist server you SHOULD select 'app folder' when creating an app so people cannot access your entire Dropbox. You may also wish to encrypt the dropbox_config file.
Uploading: The http API seems to have some trouble accessing https://api-content.dropbox.com/ which is required for uploading so I am having trouble with uploading. Any fix welcome.
On a side note:
Dropbox also contains a Datastore API (https://www.dropbox.com/developers/datastore). This allows you to store tables on the internet - maybe a useful substitute for rednet. Or even inter-server rednet?