Skip to content

Commit

Permalink
Migrate to Dropbox API v2 - Part 1 of 2
Browse files Browse the repository at this point in the history
.. updates to use OAuth2 endpoints
  • Loading branch information
liversedge committed May 25, 2017
1 parent bce4e5a commit 2fc9399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cloud/OAuthDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2fc9399

Please sign in to comment.