diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-14 18:29:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-14 18:29:31 +0300 |
commit | 40086f4fc370ca92218c805fe5cee10c09f57f2c (patch) | |
tree | eca73024f9ad1d5434821061a8b8a4ca899eb748 /plugins/CloudFile/src | |
parent | 3f1628f127d35aa14da97e50c2a94cfd61ad52dd (diff) |
merge with master till:
fixes #1358 (StdMsg: "Send on Ctrl+Enter" setting is lost after upgrade)
Diffstat (limited to 'plugins/CloudFile/src')
-rw-r--r-- | plugins/CloudFile/src/Services/google_api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CloudFile/src/Services/google_api.h b/plugins/CloudFile/src/Services/google_api.h index 2020e7db23..90cfdb4d03 100644 --- a/plugins/CloudFile/src/Services/google_api.h +++ b/plugins/CloudFile/src/Services/google_api.h @@ -15,7 +15,7 @@ namespace GDriveAPI #define GOOGLE_APP_ID "528761318515-h1etlccvk5vjsbjuuj8i73cud8do4adi.apps.googleusercontent.com" #include "../../../miranda-private-keys/Google/client_secret.h" -#define GOOGLE_AUTH GOOGLE_OAUTH "/auth?response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file&redirect_uri=https%3A%2F%2Foauth.miranda-ng.org%2Fverification&client_id=" GOOGLE_APP_ID +#define GOOGLE_AUTH GOOGLE_OAUTH "/auth?response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file&access_type=offline&prompt=consent&redirect_uri=https%3A%2F%2Foauth.miranda-ng.org%2Fverification&client_id=" GOOGLE_APP_ID class GetAccessTokenRequest : public HttpRequest { @@ -108,6 +108,7 @@ namespace GDriveAPI JSONNode parents(JSON_ARRAY); parents << JSONNode("", parentId); + parents.set_name("parents"); JSONNode params(JSON_NODE); params << JSONNode("name", name); |