[gnome-online-accounts] google: Use GoaRestProxy



commit 629d40a24204928d4cd13e14893650dc4b0e9fb5
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Aug 4 16:22:27 2017 +0200

    google: Use GoaRestProxy

 src/goabackend/goagoogleprovider.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goagoogleprovider.c b/src/goabackend/goagoogleprovider.c
index 5510553..c3acd50 100644
--- a/src/goabackend/goagoogleprovider.c
+++ b/src/goabackend/goagoogleprovider.c
@@ -27,6 +27,7 @@
 #include "goaoauth2provider.h"
 #include "goagoogleprovider.h"
 #include "goaobjectskeletonutils.h"
+#include "goarestproxy.h"
 
 struct _GoaGoogleProvider
 {
@@ -175,7 +176,7 @@ get_identity_sync (GoaOAuth2Provider  *oauth2_provider,
 
   /* TODO: cancellable */
 
-  proxy = rest_proxy_new ("https://www.googleapis.com/oauth2/v2/userinfo";, FALSE);
+  proxy = goa_rest_proxy_new ("https://www.googleapis.com/oauth2/v2/userinfo";, FALSE);
   call = rest_proxy_new_call (proxy);
   rest_proxy_call_set_method (call, "GET");
   rest_proxy_call_add_param (call, "access_token", access_token);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]