mmurgas Posted September 23, 2014 Posted September 23, 2014 Hello Friends, I consult them if someone made connection from Unigui and Dropbox, the idea is to have an evidence base (.PDF) in the cloud, but manage user profiles and upload information from Delphi + Unigui. If someone can guide me, Many Thanks Greetings MMurgas Quote
Marlon Nardi Posted September 23, 2014 Posted September 23, 2014 the closest I know of is the use of TMS API package:http://www.tmssoftware.com/site/cloudpack.aspThe same has components integration with DropBox:* TAdvDropBoxDataStore: component DataStore API to access DropBox* Component to get access to DropBox storage* Component to get access to DropBox DataStore APITAdvDropBox Create folders Delete files upload files download files Get file propertiesTAdvDropBoxDataStore Create, delete DataStores Read, update, insert, delete records DataStore Quote
brunotoira Posted September 23, 2014 Posted September 23, 2014 procedure TDropbox.Upload(const AFileName: String); const API_URL = 'https://api-content.dropbox.com/1/files_put/sandbox/'; var URL: String; https: TIdHTTP; SslIoHandler: TIdSSLIOHandlerSocket; begin URL := API_URL+ExtractFileName(AFileName) + '?oauth_signature_method=PLAINTEXT&oauth_consumer_key=' + FAppKey + '&oauth_token=' + FOAuth.AccessToken + '&oauth_signature=' + FAppSecret + '%26' + FOAuth.AccessTokenSecret; https := TIdHTTP.Create(nil); try SslIoHandler := TIdSSLIOHandlerSocket.Create(https); SslIoHandler.SSLOptions.Method := sslvTLSv1; SslIoHandler.SSLOptions.Mode := sslmUnassigned; https.IOHandler := SslIoHandler; https.Post(URL, AFileName); finally FreeAndNil(https); end; end; 1 1 Quote
Harry Rogers Posted September 25, 2014 Posted September 25, 2014 This looks interesting brunotoira I'm sure there are a lot of people out there who would like a little more info or a demo of using the method you suggest - would you mind expanding a bit ? Many thanks Harry Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.