Skysnake Posted July 13, 2016 Share Posted July 13, 2016 (edited) Hi All Is there a Dropbox API UDF available? The idea is simply to link the Dropbox to some software, whenever the user hits the "save" button, the content gets pushed through to a shared Dropbox. Like a file sharing system. I found links from 2011 and 2014. They just seemed to have died. Other option is of course to setup the Dropbox manually and simply save the folder path into an INI file, then Windows copies the file to the local \Dropbox\myFolder and Dropbox takes care of the rest. Very low tech. Thx Edited July 13, 2016 by Skysnake Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
water Posted July 13, 2016 Share Posted July 13, 2016 The wiki only lists a single UDF:https://www.autoitscript.com/wiki/User_Defined_Functions#Social_Media_and_other_Website_API My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Skysnake Posted July 13, 2016 Author Share Posted July 13, 2016 (edited) Hi @water, yup, it is linked to one of the old threads in the Forum. It is basic but seems to work. I will be playing with that. Downloaded it last night, when I have more time I will see what I can manage. Thank you for your interest. Edited July 13, 2016 by Skysnake Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Skysnake Posted July 13, 2016 Author Share Posted July 13, 2016 (edited) Okay, so the following apply, in order: Must register with Dropbox When Logged into Dropbox, follow this link Dropbox Register App Choose options Dropbox will supply: App key, App secret and Generated access token I used Grimerly's UDF to then get back the URL to (a) connect app to dropbox and (b) get authorization token I guess that with authorization token I can now start up/downloading files. Will check in again... Dropbox documentation supports a variety of languages .NET (may work with ADO UDF, I do not know) HTTP Python etc Note I had to comment the lines ; Script Line 133-134 for me ;local $size = stringlen($url) ; $obj.SetResponseHeaders("content-length", $size) to get it to work. Seems to make no difference. Edited July 13, 2016 by Skysnake Comment about UDF Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Skysnake Posted July 13, 2016 Author Share Posted July 13, 2016 (edited) Using the examples from the Dropbox site and the UDF above, I go this far: $sUrl: https://content.dropboxapi.com/2/files/upload \ --header "Authorization: Bearer Rpvj8_mypersonaltoken-BdSlcbeyl26_ECUmoIOLb7ObDSimJ0_tQb-PI5ra" \ --header "Dropbox-API-Arg: {\"path\": \"C:\Users\user\Desktop\Dropbox authenticator/tokens.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}" \ --header "Content-Type: application/octet-stream" \ --data-binary @local_file.txt 13/07 14:31:39 --> File or folder not found at the specified path. Info: Dropbox documentation Simplified it to: $sUrl = ('https://content.dropboxapi.com/2/files_put/auto/ "Authorization: Bearer Rpvj8_mypivatetoken-BdSlcbeyl26_ECUmoIOLb7ObDSimJ0_tQb-PI5ra" \""C:\Users\user\Desktop\Dropbox authenticator/tokens.txt"\"') Same 404 error. Something in the <path> syntax... Edited July 13, 2016 by Skysnake Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
Deye Posted July 15, 2016 Share Posted July 15, 2016 I see how a Dropbox UDF can be useful and convenient!, I posted about ,the other day .. I had an idea to monitor a shared folder in dropbox, and simply do stuff from there to exchange data with a client program I tried looking into it, but never played with HTTP requests or the dropbox API. So I too, was hoping that someone would share a guide or UDF that demonstrates things in "working" condition anyways, Good luck with this little project. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now