Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Dropbox SDK - Beta Release


  • Please log in to reply
11 replies to this topic
rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011
This Class allows you to integrate Dropbox directly into your scripts.

Users of 64-bit AutoHotkey will need to have ComSurrogate running in the background.

It provides the following methods:
Spoiler

Requires: HttpRequest() by VxE
 
Reference: REST API Reference

Class:
Spoiler


Change Log:
  • 7-12-2013: Changed the GetUserAuthorization() method so that it is more flexible.
  • 7-13-2013: GetAccessTokens() was not setting this.LastResponse. Fixed
  • 7-14-2013: Class was not working on 64-bit windows. My sincere thanks to BlackHolyman for providing the code to solve this and to fincs for writing ComSurrogate.
  • 8-1-2013:
    • Added the GetAppKeys() method which automates the generation of all of the application and authorization keys.
    • Removed the GetAuthorizationTokens() and GetUserAuthorization() methods and merged their functionallity into the GetAccessTokens() method.
  • 8-20-2013: BUGFIX: In many cases, the GetMetadata() method was ignoring the hash parameter.

Edited by rbrtryn, 21 August 2013 - 04:43 AM.

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


Menixator
  • Members
  • 744 posts
  • Last active: Sep 01 2015 02:54 PM
  • Joined: 10 Jul 2013

Awesome Library!grin.png 



rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011
  • Changed the GetUserAuthorization() method so that it is more flexible.
  • Updated the example in the OP

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011
Bug Fix: GetAccessTokens() was not setting this.LastResponse. Fixed

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


Jackie Sztuk _Blackholyman
  • Spam Officer
  • 3757 posts
  • Last active: Apr 03 2016 08:47 PM
  • Joined: 28 Feb 2012
Glad to see this in beta happy.png

I just tryed you example on AHk unicode with win 7, 64bit

And get this error as there is no 64-bit version of the ScriptControl as far as I know
Spoiler


Keep up the nice work happy.png
Helping%20you%20learn%20autohotkey.jpg?d

[AHK] Version. 1.1+ [CLOUD] DropBox ; Copy [WEBSITE] Blog ; About

rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011

And get this error as there is no 64-bit version of the ScriptControl as far as I know


Added a note to the OP that this is, for now, 32-bit AutoHotkey only.

Still looking for an efficient replacement for ParseJson() that doesn't use the ScriptControl.

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011
Class was not working on 64-bit windows. FIXED My sincere thanks to BlackHolyman for providing the code to solve this and to fincs for writing ComSurrogate.

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011
8-1-2013:
  • Added the GetAppKeys() method which automates the generation of all of the application and authorization keys.
  • Removed the GetAuthorizationTokens() and GetUserAuthorization() methods and merged their functionality into the GetAccessTokens() method.

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011
BUGFIX: In many cases, the GetMetadata() method was ignoring the hash parameter.

My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!


GeekDude
  • Spam Officer
  • 391 posts
  • Last active: Oct 05 2015 08:13 PM
  • Joined: 23 Nov 2009

This looks amazing! Much better than my jerry-rigged script that relies on the now deprecated public folder :)



joedf
  • Administrators
  • 986 posts
  • AutoHotkey Foundation
  • Last active: Nov 02 2019 08:38 PM
  • Joined: 20 May 2012

:D


Why ahkscript.org? - autohotkey.com is outdated

rbrtryn
  • Members
  • 1177 posts
  • Last active: Sep 11 2013 08:04 PM
  • Joined: 22 Jun 2011

biggrin.gif


My Scripts are written for the latest released version of AutoHotkey.

Need a secure, accessible place to backup your stuff? Use Dropbox!