From 2fc93992e3475a824bf5da12e99cf6fa63db9daf Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Thu, 25 May 2017 11:24:52 +0100 Subject: [PATCH] Migrate to Dropbox API v2 - Part 1 of 2 .. updates to use OAuth2 endpoints --- src/Cloud/OAuthDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cloud/OAuthDialog.cpp b/src/Cloud/OAuthDialog.cpp index 7ddcd39e3..83cffe7a9 100644 --- a/src/Cloud/OAuthDialog.cpp +++ b/src/Cloud/OAuthDialog.cpp @@ -108,7 +108,7 @@ OAuthDialog::OAuthDialog(Context *context, OAuthSite site, CloudService *service } else if (site == DROPBOX) { - urlstr = QString("https://www.dropbox.com/1/oauth2/authorize?"); + urlstr = QString("https://www.dropbox.com/oauth2/authorize?"); #ifdef GC_DROPBOX_CLIENT_ID urlstr.append("client_id=").append(GC_DROPBOX_CLIENT_ID).append("&"); #endif @@ -355,7 +355,7 @@ OAuthDialog::urlChanged(const QUrl &url) // now get the final token to store if (site == DROPBOX) { - urlstr = QString("https://api.dropboxapi.com/1/oauth2/token?"); + urlstr = QString("https://api.dropboxapi.com/oauth2/token?"); urlstr.append("redirect_uri=https://goldencheetah.github.io/blank.html&"); params.addQueryItem("grant_type", "authorization_code"); #ifdef GC_DROPBOX_CLIENT_ID