/soc/2015/nakulgulati/main: a533c73c8f53: hangouts: hangouts.c -...
Nakul at rock.pidgin.im
Nakul at rock.pidgin.im
Mon Jul 20 06:51:57 EDT 2015
Changeset: a533c73c8f53bcbe9f4d6cef796e80b1607cf5d0
Author: Nakul Gulati
Date: 2015-07-20 03:50 +0800
Branch: hangouts
URL: https://hg.pidgin.im/soc/2015/nakulgulati/main/rev/a533c73c8f53
Description:
hangouts: hangouts.c - removed test code
diffstat:
libpurple/protocols/hangouts/hangouts.c | 24 +-----------------------
1 files changed, 1 insertions(+), 23 deletions(-)
diffs (34 lines):
diff --git a/libpurple/protocols/hangouts/hangouts.c b/libpurple/protocols/hangouts/hangouts.c
--- a/libpurple/protocols/hangouts/hangouts.c
+++ b/libpurple/protocols/hangouts/hangouts.c
@@ -57,29 +57,7 @@ hangouts_login(PurpleAccount *acct)
purple_debug_misc("hangouts-prpl", "login; account username: %s;",username);
- //hangouts_auth_with_authentication_code(gc);
- gchar *access_token = "ya29.sAFqEySvY_kujc-YjKJKUsuc7jWEeYH9fUkUDwBLvHZFIdORgaIY-82eWgDx3OE";
- hangouts_auth_get_session_cookies(gc,access_token);
-
- /*purple_debug_misc("hangouts-prpl", "uberauth");
- PurpleHttpRequest *request;*/
- /*gchar *auth_data, *url, *uberauth;*/
- //PurpleHttpCookieJar *cookie_jar;
-
- /*uberauth = purple_http_response_get_data(response, NULL);
- purple_debug_misc("hangouts-prpl", "uberauth: %s", uberauth);*/
- /*PurpleHttpCookieJar *cookie_jar;
- cookie_jar = purple_http_cookie_jar_new();
-
- auth_data = g_strdup_printf("Bearer %s","ya29.owEK_4dOrUVYKWPZZc7u1VLPyAy529RzOe3HjryXcTsUreGrMhYpMvCl0fBAc1G--038piAwk1c8ww");
- url = "https://accounts.google.com/MergeSession?service=mail&continue=http://www.google.com&uberauth=APh-3FyXVKIRXo4sA-ePgs_2pWQFASboldGClyyt1shiSGV3KnyZu8E4N7DDIoz1knepZkCKoFlzWrJlqrUA1NmOUbcVonQCdUsMSj6LFmqKJ8HbH7lyJd24_ZT1JblIcFWlTegGbcPhNmKs0h8_7kM3BQhlvmJy2cr_7idhYaypKyG1OdT0ajEpLCf3nZDZVfhmVeig_ik2DHU7u_rod6giJu3kVAT3Fw0_fXc3r7yRrTw0UlzIX5vFCy_Xp4yHXT68H-QI9ayvg25HUyIB62wZ5aKZLqwsZ04FPHjan3G2g1CM6eFQLNhhdtEmefoPjEeJPyUT3uF4aRr7qYm8RtOcd0B-qMjVowRMO4JfB3uZA5g1fivQj5kTtJ5oLS5RiP62BdXV-JzjoBlwqxc1VWypMq6BcdS24dzG3h834zcMCFagRZ2Uvq0Igx0nFRu8bPZsqDjEtOp7zv-il61l8FzgVcSCdk0YCZrBBlft8gROg3_fWJbfbGsnKB58cNHCHLmD_GOv97YCup6Lu72tpx7UtDK7gw6rPBzuTRpyCMnn3eKYwFEk0VkXT9oJcm_Q_aVo0Cnj8i6gpeLuGaoiM9rsDRo96YszuVE7Y2tfnAUcReoCa9g2R-VXMCPUvutBS_RuuXdODYpbDcg5sxMxsnuBghaCmjyh2w2-Qup-9IBztPzytwT6QXhBG3lcBFjPy0xTSakJItM3d4SCPWg8oBUE-Er4f-zigw";
-
- request = purple_http_request_new(url);
- purple_http_request_set_method(request,"GET");
- purple_http_request_header_set(request,"Authorization",auth_data);
- purple_http_request_set_cookie_jar(request,cookie_jar);
- purple_http_request(gc,request,hangouts_auth_get_session_cookies_got_cb,gc);*/
-
+ hangouts_auth_with_authentication_code(gc);
}
static void
More information about the Commits
mailing list