Migrate to Dropbox API v2 - Part 1 of 2

.. updates to use OAuth2 endpoints
This commit is contained in:
Mark Liversedge
2017-05-25 11:24:52 +01:00
parent bce4e5a8fe
commit 2fc93992e3

View File

@@ -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