[gthumb] picasaweb: use the new uris
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] picasaweb: use the new uris
- Date: Thu, 26 Oct 2017 16:53:29 +0000 (UTC)
commit 99351f6a67f3532a77d1e7863dede825892976c7
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Oct 26 18:46:55 2017 +0200
picasaweb: use the new uris
extensions/picasaweb/picasa-web-service.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/picasaweb/picasa-web-service.c b/extensions/picasaweb/picasa-web-service.c
index b2322a2..ed40818 100644
--- a/extensions/picasaweb/picasa-web-service.c
+++ b/extensions/picasaweb/picasa-web-service.c
@@ -219,7 +219,7 @@ _picasa_web_service_get_refresh_token (PicasaWebService *self,
g_hash_table_insert (data_set, "client_secret", GTHUMB_PICASA_WEB_CLIENT_SECRET);
g_hash_table_insert (data_set, "redirect_uri", PICASA_WEB_REDIRECT_URI);
g_hash_table_insert (data_set, "grant_type", "authorization_code");
- msg = soup_form_request_new_from_hash ("POST", "https://accounts.google.com/o/oauth2/token",
data_set);
+ msg = soup_form_request_new_from_hash ("POST", "https://www.googleapis.com/oauth2/v4/token",
data_set);
_picasa_web_service_add_headers (self, msg);
_web_service_send_message (WEB_SERVICE (self),
msg,
@@ -304,7 +304,7 @@ picasa_web_service_get_authorization_url (PicasaWebService *self)
g_hash_table_insert (data_set, "scope", "https://picasaweb.google.com/data/
https://www.googleapis.com/auth/userinfo.profile");
g_hash_table_insert (data_set, "access_type", "offline");
- link = g_string_new ("https://accounts.google.com/o/oauth2/auth?");
+ link = g_string_new ("https://accounts.google.com/o/oauth2/v2/auth?");
keys = g_hash_table_get_keys (data_set);
for (scan = keys; scan; scan = scan->next) {
char *key = scan->data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]