I am considering using DropBox to sync user data with a delphi app. It would seem to solve lots of problems regarding security, permissions, etc... I see that there are some API samples for C#, python, etc.. Has anyone done it with Delphi, and if so, are there samples available?
+7
A:
The DropBox API is a generic web based API, either using JSON over HTTP or REST (also over HTTP) calling into the DropBox web server using an API key.
All language specific wrappers are just bindings around this API:
they either encapsulate the JSON over HTTP or REST over HTTP calls.
For a Delphi implementation, rolling your own JSON wrapper is probably the easiest.
There are various ways of doing JSON in Delphi.
Starting with Delphi 2010 on, it contains a native JSON implementation.
Up until Delphi 2009, you can use SuperObject for JSON.
This post from Daniele Teti and the comment thread Below it explain them both.
--jeroen
Jeroen Pluimers
2010-06-10 18:07:14
Thanks - I had read right past the JSON/REST stuff and was thinking that I had to talk to a DLL. Thanks for the links! If I cook up a working example, I'll post it back here.
Chris Thornton
2010-06-10 18:38:10
@Chris: you are welcome; I'm looking forward to your sample!
Jeroen Pluimers
2010-06-10 20:37:17
A:
@Chris. Any update on your sample please? Particularly the JSON implementation 8>D
Rick Wheeler
2010-07-10 21:28:58
@Rick: StackOverflow convention is to post your message as a comment to Chris' answer, not as a separate answer.
Jeroen Pluimers
2010-07-11 09:41:02
@Jeroen Pluimers - You can only post comments to others questions/answers if you have rep over 50.
Oded
2010-10-05 12:41:40