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?
Asked
Active
Viewed 6,013 times
15
-
2Sorry, no updates! I've been distracted by other things and this project got sidetracked. I'm still interested though, and hope to get back to it. – Chris Thornton Oct 05 '10 at 12:35
1 Answers
13
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

Mohammed Nasman
- 10,992
- 7
- 43
- 68

Jeroen Wiert Pluimers
- 23,965
- 9
- 74
- 154
-
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 Jun 10 '10 at 18:38
-
@Chris: you are welcome; I'm looking forward to your sample! – Jeroen Wiert Pluimers Jun 10 '10 at 20:37