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();
 }
示例#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();
 }
示例#3
0
 static protected string GetActor(Google.Apis.Plus.v1.Data.Person actor, Visualizers.Types logType)
 {
     return(logType == Visualizers.Types.Code_swarm ? actor.Id : actor.DisplayName);
 }