DropBox Cloud Storage is quite flexible, has Drop-ins, Datastore API, Sync API, Core API. Here are some examples to get started. As we know, for closed source platforms, the only way to develop is to approach via the SDK way and read the API guides. What we want to tell the new developers should be very clear – it is quite interesting to work with DropBox but as DropBox is itself closed source, unlike OpenStack Swift – one must not waste a huge time behind developing DropBox Dependent Apps.
Basics of DropBox Cloud Storage Webhook
Some of the API responses over HTTP can be tested with our great tool for OS X – CocoaRestClient. You can install nautilus-dropbox
on your Ubuntu desktop or Server :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # add source echo 'deb http://linux.dropbox.com/ubuntu saucy main'>>'dropbox.list' # chmod and chown chmod 644 'dropbox.list' sudo chown root:root 'dropbox.list' # move or copy sudo mv 'dropbox.list' '/etc/apt/sources.list.d/dropbox.list' # add the key to get validated via apt-get sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5044912E # install dependencies sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 # update and upgrade sudo apt-get update && upgrade # last command to install sudo apt-get install dropbox |
You can create SVN repo in this way :
---
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | cd ~Dropbox mkdir SVNRepo cd SVNRepo # note the name svnadmin create . # you can use any SVN client to create repository # example mkdir ~MyCode cd MyCode svn checkout file:///~Dropbox/SVNRepo mkdir trunk mkdir branches mkdir tags svn commit -m "Initial setup (committing trunk, branches, tags)" svn checkout file:///~Dropbox/SVNRepo/trunk |
This is advanced usage but not actually Dropbox Specific – you’ll not get vendor lock-in. You’ll get the pure Webhook tuts here :
1 | https://www.dropbox.com/developers/webhooks/tutorial |
DropBox Cloud Storage Webhook and Sample Apps
A sample app that uses web hooks to convert Markdown files to HTML and hosted on free Heroku PaaS can be found here :
1 | https://mdwebhook.herokuapp.com/ |
The source code of the App is open :
1 | https://github.com/dropbox/mdwebhook |
There are quite interesting resources :
1 | https://github.com/interagent/http-api-design |
These are great for getting used with various types of API and web hooks free of cost.
Tagged With dropbox webhook