From ce3b13929c6e202b61826316241ea2eabbc8b235 Mon Sep 17 00:00:00 2001 From: Sebastian Feldmann Date: Sun, 24 Nov 2024 20:01:32 +0100 Subject: [PATCH] Fix Dropbox sync In order to support short-lived tokens we have to provide a refresh token, which can be obtained from the Dropbox api. Fixes issue #362 --- doc/config/sync/dropbox.json | 2 +- doc/config/sync/dropbox.xml | 2 +- src/Backup/Sync/Dropbox.php | 41 +++++++++++++++++++++--------------- 3 files changed, 26 insertions(+), 19 deletions(-) diff --git a/doc/config/sync/dropbox.json b/doc/config/sync/dropbox.json index c6d2545..49841a9 100644 --- a/doc/config/sync/dropbox.json +++ b/doc/config/sync/dropbox.json @@ -1,7 +1,7 @@ { "type": "dropbox", "options": { - "token": "myCrazyLongApiTokenThatIGotFromDropbox", + "refreshToken": "myCrazyLongRefreshTokenThatIGotFromDropbox", "appKey": "myAppKey", "appSecret": "myAppSecret", "path": "/some/dir" diff --git a/doc/config/sync/dropbox.xml b/doc/config/sync/dropbox.xml index bd98f7b..8c5f77e 100644 --- a/doc/config/sync/dropbox.xml +++ b/doc/config/sync/dropbox.xml @@ -1,7 +1,7 @@ -