protected void Page_Load(object sender, EventArgs e)
 {
     GPlusWrapper.PlusWrapper pw = new GPlusWrapper.PlusWrapper();
     me = pw.Authenticate();
     pw.ListActivities("me");
     Moment wrote = pw.WriteDemoMoment();
     disconnectURL = pw.GetDisconnectURL();
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     GPlusWrapper.PlusWrapper pw = new GPlusWrapper.PlusWrapper();
     if (Request.Params["code"] != null)
     {
       OAuthResponseObject response = ManualCodeExchanger.ExchangeCode(Request.Params["code"]);
       if (response != null) {
         pw.setTokens(response.access_token, response.refresh_token);
       }
     }
     me = pw.Authenticate();
     pw.ListActivities("me");
     Moment wrote = pw.WriteDemoMoment();
     disconnectURL = pw.GetDisconnectURL();
 }