Seems like its all server code. It'd be nice to do x-domain posts straight from the browser to Dropbox.
This would be incredible. Web apps that are 100% HTML5/Javascript/LocalStorage could then use Dropbox to store/retrieve data in the cloud.
The Dropbox API
21–30 of 48 posts
Re: The Dropbox API
#22Re: The Dropbox API
#23Seems like its all server code. It'd be nice to do x-domain posts straight from the browser to Dropbox.
Everything their SDKs do can also be done using their REST API (https://www.dropbox.com/developers/reference/api) and they support JSONP to allow cross-domain GET queries. However, my understanding is that JSONP is not supported for other REST methods, most importantly POSTs. A person claims to have found a workaround for doing POSTs via JSONP here: http://stackoverflow.com/questions/5345493/using-put-post-de....
Has anyone tried that or know of a way to do cross-domain POSTs?
Re: The Dropbox API
#24Earlier quoted context omitted.
This would be incredible. Web apps that are 100% HTML5/Javascript/LocalStorage could then use Dropbox to store/retrieve data in the cloud.
How would that differ from S3? Is the concept that people would also have a better local UI on their data directory?
Re: The Dropbox API
#25In fact I can't think of any good reason to use the older version but I would like to hear if there are anybody who has different experiences since I haven't worked much with it.
Re: The Dropbox API
#26My personal favorite apps that use the API: plaintext: http://itunes.apple.com/us/app/plaintext-dropbox-text-editin... http://ifttt.com https://www.hellofax.com http://greplin.com
Wow, so could that plain text file be a JavaScript file in my public Dropbox folder?
Re: The Dropbox API
#27Seems like its all server code. It'd be nice to do x-domain posts straight from the browser to Dropbox.
If it is not possible, I think it is more a web programming limitation rather than Dropbox failing to implement something. Everything their SDKs do can also be done using their REST API ( https://www.dropbox.com/developers/reference/api ) and they support JSONP to allow cross-domain GET queries. However, my understanding is that JSONP is not supported for other REST methods, most importantly POSTs. A person claims to…
The method described in the SO answer is similar, from what I can tell, to what DISQUS uses. I believe they call it JSONPI: http://alexsexton.com/thirdparty/#forms-are-cool-too
Re: The Dropbox API
#28This is interesting although I really really wished they had used oauth v2 since it is so much better and is designed to give a first class experience on mobile devices. In fact I can't think of any good reason to use the older version but I would like to hear if there are anybody who has different experiences since I haven't worked much with it.
Re: The Dropbox API
#29This is interesting although I really really wished they had used oauth v2 since it is so much better and is designed to give a first class experience on mobile devices. In fact I can't think of any good reason to use the older version but I would like to hear if there are anybody who has different experiences since I haven't worked much with it.
Re: The Dropbox API
#30Earlier quoted context omitted.
How would that differ from S3? Is the concept that people would also have a better local UI on their data directory?
It is much cheaper to scale an application putting data onto peoples' Dropbox folders instead of S3. For S3, you would have to pay for the total amount of storage used by your customers; with Dropbox you wouldn't have to pay anything for storage, and for the most part your users wouldn't have to either since each gets a certain amount for free.