Topic: Dropbox API

Dropbox is an awesome way to store and share files in the cloud (e.g. you can use it to mirror files across many computers or routers).  BTW, if you'd like to sign up, here is my referral link (both you and I will get some extra space if you use it):  LINK

My specific goal was to create a script that would poll my Gmail account every few minutes and check for specific messages that contain attachments.  Then, it would save the attachments to my dropbox account so I could easily access them on all of my desktop computers.  I used python and it all worked out nicely.  The steps below will get you up and running with the Dropbox API. 

My router is WNDR3700v2 running 10.03.1


These steps assume that you already have a dropbox account. 

Step 1:  Sign up for the dropbox developper account here:  https://www.dropbox.com/developers

Step 2:  Create a dropbox App using this link:  https://www.dropbox.com/developers/apps

Step 3:  Install python on your router:

opkg update
opkg install python python-openssl

Step 4:  Install setuptools (needed to install the Dropbox API)

cd /tmp
wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
sh setuptools-0.6c11-py2.6.egg

Step 5:  Download and unpack the API from dropbox website: https://www.dropbox.com/static/develope … dk-1.2.zip

Step 6:  Go through the short tutorial on how to use the API.  https://www.dropbox.com/developers/start/setup#python 

That's it.  Let me know if you run into any problems.

2 (edited by tectep 2012-02-04 09:45:20)

Re: Dropbox API

Thank you for this tutorial.
I have idea to save openwrt logs in dropbox folder. I'll try this tutorial on next weekend )
Unfortunately dropbox API doesn't offer any append or concat functionality for files. So it is useless for logging sad

3 (edited by chatlanin 2012-03-30 19:29:53)

Re: Dropbox API

Here is a small HOW-TO add a new torrent tasks to your router, using Dropbox cloud.

You just drop your *.torrent-files to Dropbox and router will download it.

Please, install a DropboxAPI first as decribed above.