using the dropbox api Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
colt
Posts: 291
Joined: 04 Aug 2014, 23:12
Location: Portland Oregon

using the dropbox api

08 Apr 2021, 16:22

My end goal is to make a script that can download all previous version of a file into a single folder. I found this post https://autohotkey.com/board/topic/95288-get-started-with-the-dropbox-sdk/ but am having trouble getting the example script work. It makes it past MyDB.GetAccessTokens() without any errors. However, when I run the command

Code: Select all

FolderInfo := MyDB.GetMetadata("/sample")
I get the error
"error : Invalid OAuth1 token"

Edit: Found out that dropbox updated their api to v2. Has anyone converted this to work with their new api?
colt
Posts: 291
Joined: 04 Aug 2014, 23:12
Location: Portland Oregon

Re: using the dropbox api  Topic is solved

10 Apr 2021, 01:36

I transferred some of the functionality over to the v2 api. It is not much, but it can do a few basic things. It should be pretty easy to expand on if any other api calls are needed.

https://github.com/coltEli/ahkDropboxSDK
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: using the dropbox api

10 Apr 2021, 05:23

Thx for sharing your solution! :thumbup:
I‘ve no idea if handling OAuth can be duplicated 1:1 for other services as well - so here‘s how it’s used with YouTube: https://www.autohotkey.com/boards/viewtopic.php?p=263499#p263499 provided by @malcev.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Google [Bot], mikeyww, Nerafius and 90 guests