tags:

views:

305

answers:

2

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
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
@Chris: you are welcome; I'm looking forward to your sample!
Jeroen Pluimers
A: 

@Chris. Any update on your sample please? Particularly the JSON implementation 8>D

Rick Wheeler
@Rick: StackOverflow convention is to post your message as a comment to Chris' answer, not as a separate answer.
Jeroen Pluimers
@Jeroen Pluimers - You can only post comments to others questions/answers if you have rep over 50.
Oded
@Oded: Ah thx; learned something new today :-)
Jeroen Pluimers