Google Calendar reminder seems not worksWhy is January month 0 in Java Calendar?Java Date vs CalendarCalendar Recurring/Repeating Events - Best Storage MethodEvent reminder not working for calendar events in androidJava. JBoss. Calendar. Creating a reminderCalendar Reminder not working in custom calendar accountHow to read reminders in google calendarsAPI for google reminders created in the calendarget google calendar reminders using phpandroid.database.sqlite.SQLiteException while adding reminder in calendar

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

How is it possible to have an ability score that is less than 3?

What typically incentivizes a professor to change jobs to a lower ranking university?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

Why doesn't H₄O²⁺ exist?

Why is 150k or 200k jobs considered good when there's 300k+ births a month?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Did Shadowfax go to Valinor?

I'm flying to France today and my passport expires in less than 2 months

Could an aircraft fly or hover using only jets of compressed air?

Replacing matching entries in one column of a file by another column from a different file

Roll the carpet

Languages that we cannot (dis)prove to be Context-Free

Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)

What's that red-plus icon near a text?

Does an object always see its latest internal state irrespective of thread?

Why can't we play rap on piano?

Can I ask the recruiters in my resume to put the reason why I am rejected?

What does it mean to describe someone as a butt steak?

How can bays and straits be determined in a procedurally generated map?

Rock identification in KY

How can I make my BBEG immortal short of making them a Lich or Vampire?

Which country benefited the most from UN Security Council vetoes?

Can you really stack all of this on an Opportunity Attack?



Google Calendar reminder seems not works


Why is January month 0 in Java Calendar?Java Date vs CalendarCalendar Recurring/Repeating Events - Best Storage MethodEvent reminder not working for calendar events in androidJava. JBoss. Calendar. Creating a reminderCalendar Reminder not working in custom calendar accountHow to read reminders in google calendarsAPI for google reminders created in the calendarget google calendar reminders using phpandroid.database.sqlite.SQLiteException while adding reminder in calendar






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I'm trying to develop a procedure that allows me to insert events on the google calendar.
The procedure seems to work well. The event on the calendar is created but I can not, however, set a reminder different from the default one.



This is my procedure:



 public string writeOnCalendar(
string _ClientId
, string _ClientSecret
, string _Summary
, string _Location
, System.DateTime start_dateTime
, string start_timeZone
, System.DateTime end_dateTime
, string end_timeZone
, string _Email
)
try

var r1 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 7 ;
var r2 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 9 ;
var erd = new Google.Apis.Calendar.v3.Data.Event.RemindersData UseDefault = false, Overrides = new[] r1, r2 ;

string[] Scopes = Google.Apis.Calendar.v3.CalendarService.Scope.Calendar ;
Google.Apis.Calendar.v3.Data.Event myEvent = new Google.Apis.Calendar.v3.Data.Event

Summary = _Summary,
Location = _Location,
Reminders = erd,
Start = new Google.Apis.Calendar.v3.Data.EventDateTime()

DateTime = start_dateTime,
TimeZone = start_timeZone
,
End = new Google.Apis.Calendar.v3.Data.EventDateTime()

DateTime = end_dateTime,
TimeZone = end_timeZone
,
//Recurrence = new System.String[]
// "RRULE:FREQ=WEEKLY;BYDAY=MO"
//,
Attendees = new System.Collections.Generic.List<Google.Apis.Calendar.v3.Data.EventAttendee>()

new Google.Apis.Calendar.v3.Data.EventAttendee() Email = _Email
,
;
Google.Apis.Auth.OAuth2.ClientSecrets cs = new Google.Apis.Auth.OAuth2.ClientSecrets

ClientId = _ClientId,
ClientSecret = _ClientSecret
;
string ApplicationName = "Google Calendar API .NET Quickstart";
//Path where Json File is stored
Google.Apis.Util.Store.FileDataStore store = new Google.Apis.Util.Store.FileDataStore(System.Web.HttpContext.Current.Server.MapPath("~/public/calendar-dotnet-quickstart.json"), true);
Google.Apis.Auth.OAuth2.UserCredential credential = Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.AuthorizeAsync(cs, Scopes, "user", System.Threading.CancellationToken.None, store).Result;
var service = new Google.Apis.Calendar.v3.CalendarService(new Google.Apis.Services.BaseClientService.Initializer()

HttpClientInitializer = credential,
ApplicationName = ApplicationName,
);
Google.Apis.Calendar.v3.EventsResource.InsertRequest request = service.Events.Insert(myEvent, "primary");
request.SendNotifications = true;
Google.Apis.Calendar.v3.Data.Event createdEvent = request.Execute();


System.Web.HttpContext.Current.Response.Write(createdEvent.Status + "<br />");
System.Web.HttpContext.Current.Response.Write(createdEvent.Id + "<br />");
foreach (var r in createdEvent.Reminders.Overrides)

System.Web.HttpContext.Current.Response.Write(" mins: " + r.Minutes + "<br />");

return "";

catch (System.Exception ex)

System.Web.HttpContext.Current.Response.Write(ex.ToString());
return ex.ToString();




And this is my call to the procedure



writeOnCalendar(
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
, "xxxxxxxxxxxxxxxxxxxxxxxx"
, "Lorem ipsum dolor sit amet"
, "via tito speri 8"
, new DateTime(2019, 2, 24, 15, 30, 0)
, "America/Los_Angeles"
, new DateTime(2019, 2, 24, 20, 30, 0)
, "America/Los_Angeles"
, "f.chiavistrelli2@gmail.com"
)
);


Reading the page debugging it seems that everything went well




confirmed



97d33nj9so2jco7l1rgva64n50



mins: 7



mins: 9




However, only the default 30 minute reminder is shown on the calendar.
calendar result



I tried and tried again. What am I doing wrong?










share|improve this question






























    -1















    I'm trying to develop a procedure that allows me to insert events on the google calendar.
    The procedure seems to work well. The event on the calendar is created but I can not, however, set a reminder different from the default one.



    This is my procedure:



     public string writeOnCalendar(
    string _ClientId
    , string _ClientSecret
    , string _Summary
    , string _Location
    , System.DateTime start_dateTime
    , string start_timeZone
    , System.DateTime end_dateTime
    , string end_timeZone
    , string _Email
    )
    try

    var r1 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 7 ;
    var r2 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 9 ;
    var erd = new Google.Apis.Calendar.v3.Data.Event.RemindersData UseDefault = false, Overrides = new[] r1, r2 ;

    string[] Scopes = Google.Apis.Calendar.v3.CalendarService.Scope.Calendar ;
    Google.Apis.Calendar.v3.Data.Event myEvent = new Google.Apis.Calendar.v3.Data.Event

    Summary = _Summary,
    Location = _Location,
    Reminders = erd,
    Start = new Google.Apis.Calendar.v3.Data.EventDateTime()

    DateTime = start_dateTime,
    TimeZone = start_timeZone
    ,
    End = new Google.Apis.Calendar.v3.Data.EventDateTime()

    DateTime = end_dateTime,
    TimeZone = end_timeZone
    ,
    //Recurrence = new System.String[]
    // "RRULE:FREQ=WEEKLY;BYDAY=MO"
    //,
    Attendees = new System.Collections.Generic.List<Google.Apis.Calendar.v3.Data.EventAttendee>()

    new Google.Apis.Calendar.v3.Data.EventAttendee() Email = _Email
    ,
    ;
    Google.Apis.Auth.OAuth2.ClientSecrets cs = new Google.Apis.Auth.OAuth2.ClientSecrets

    ClientId = _ClientId,
    ClientSecret = _ClientSecret
    ;
    string ApplicationName = "Google Calendar API .NET Quickstart";
    //Path where Json File is stored
    Google.Apis.Util.Store.FileDataStore store = new Google.Apis.Util.Store.FileDataStore(System.Web.HttpContext.Current.Server.MapPath("~/public/calendar-dotnet-quickstart.json"), true);
    Google.Apis.Auth.OAuth2.UserCredential credential = Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.AuthorizeAsync(cs, Scopes, "user", System.Threading.CancellationToken.None, store).Result;
    var service = new Google.Apis.Calendar.v3.CalendarService(new Google.Apis.Services.BaseClientService.Initializer()

    HttpClientInitializer = credential,
    ApplicationName = ApplicationName,
    );
    Google.Apis.Calendar.v3.EventsResource.InsertRequest request = service.Events.Insert(myEvent, "primary");
    request.SendNotifications = true;
    Google.Apis.Calendar.v3.Data.Event createdEvent = request.Execute();


    System.Web.HttpContext.Current.Response.Write(createdEvent.Status + "<br />");
    System.Web.HttpContext.Current.Response.Write(createdEvent.Id + "<br />");
    foreach (var r in createdEvent.Reminders.Overrides)

    System.Web.HttpContext.Current.Response.Write(" mins: " + r.Minutes + "<br />");

    return "";

    catch (System.Exception ex)

    System.Web.HttpContext.Current.Response.Write(ex.ToString());
    return ex.ToString();




    And this is my call to the procedure



    writeOnCalendar(
    "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
    , "xxxxxxxxxxxxxxxxxxxxxxxx"
    , "Lorem ipsum dolor sit amet"
    , "via tito speri 8"
    , new DateTime(2019, 2, 24, 15, 30, 0)
    , "America/Los_Angeles"
    , new DateTime(2019, 2, 24, 20, 30, 0)
    , "America/Los_Angeles"
    , "f.chiavistrelli2@gmail.com"
    )
    );


    Reading the page debugging it seems that everything went well




    confirmed



    97d33nj9so2jco7l1rgva64n50



    mins: 7



    mins: 9




    However, only the default 30 minute reminder is shown on the calendar.
    calendar result



    I tried and tried again. What am I doing wrong?










    share|improve this question


























      -1












      -1








      -1








      I'm trying to develop a procedure that allows me to insert events on the google calendar.
      The procedure seems to work well. The event on the calendar is created but I can not, however, set a reminder different from the default one.



      This is my procedure:



       public string writeOnCalendar(
      string _ClientId
      , string _ClientSecret
      , string _Summary
      , string _Location
      , System.DateTime start_dateTime
      , string start_timeZone
      , System.DateTime end_dateTime
      , string end_timeZone
      , string _Email
      )
      try

      var r1 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 7 ;
      var r2 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 9 ;
      var erd = new Google.Apis.Calendar.v3.Data.Event.RemindersData UseDefault = false, Overrides = new[] r1, r2 ;

      string[] Scopes = Google.Apis.Calendar.v3.CalendarService.Scope.Calendar ;
      Google.Apis.Calendar.v3.Data.Event myEvent = new Google.Apis.Calendar.v3.Data.Event

      Summary = _Summary,
      Location = _Location,
      Reminders = erd,
      Start = new Google.Apis.Calendar.v3.Data.EventDateTime()

      DateTime = start_dateTime,
      TimeZone = start_timeZone
      ,
      End = new Google.Apis.Calendar.v3.Data.EventDateTime()

      DateTime = end_dateTime,
      TimeZone = end_timeZone
      ,
      //Recurrence = new System.String[]
      // "RRULE:FREQ=WEEKLY;BYDAY=MO"
      //,
      Attendees = new System.Collections.Generic.List<Google.Apis.Calendar.v3.Data.EventAttendee>()

      new Google.Apis.Calendar.v3.Data.EventAttendee() Email = _Email
      ,
      ;
      Google.Apis.Auth.OAuth2.ClientSecrets cs = new Google.Apis.Auth.OAuth2.ClientSecrets

      ClientId = _ClientId,
      ClientSecret = _ClientSecret
      ;
      string ApplicationName = "Google Calendar API .NET Quickstart";
      //Path where Json File is stored
      Google.Apis.Util.Store.FileDataStore store = new Google.Apis.Util.Store.FileDataStore(System.Web.HttpContext.Current.Server.MapPath("~/public/calendar-dotnet-quickstart.json"), true);
      Google.Apis.Auth.OAuth2.UserCredential credential = Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.AuthorizeAsync(cs, Scopes, "user", System.Threading.CancellationToken.None, store).Result;
      var service = new Google.Apis.Calendar.v3.CalendarService(new Google.Apis.Services.BaseClientService.Initializer()

      HttpClientInitializer = credential,
      ApplicationName = ApplicationName,
      );
      Google.Apis.Calendar.v3.EventsResource.InsertRequest request = service.Events.Insert(myEvent, "primary");
      request.SendNotifications = true;
      Google.Apis.Calendar.v3.Data.Event createdEvent = request.Execute();


      System.Web.HttpContext.Current.Response.Write(createdEvent.Status + "<br />");
      System.Web.HttpContext.Current.Response.Write(createdEvent.Id + "<br />");
      foreach (var r in createdEvent.Reminders.Overrides)

      System.Web.HttpContext.Current.Response.Write(" mins: " + r.Minutes + "<br />");

      return "";

      catch (System.Exception ex)

      System.Web.HttpContext.Current.Response.Write(ex.ToString());
      return ex.ToString();




      And this is my call to the procedure



      writeOnCalendar(
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
      , "xxxxxxxxxxxxxxxxxxxxxxxx"
      , "Lorem ipsum dolor sit amet"
      , "via tito speri 8"
      , new DateTime(2019, 2, 24, 15, 30, 0)
      , "America/Los_Angeles"
      , new DateTime(2019, 2, 24, 20, 30, 0)
      , "America/Los_Angeles"
      , "f.chiavistrelli2@gmail.com"
      )
      );


      Reading the page debugging it seems that everything went well




      confirmed



      97d33nj9so2jco7l1rgva64n50



      mins: 7



      mins: 9




      However, only the default 30 minute reminder is shown on the calendar.
      calendar result



      I tried and tried again. What am I doing wrong?










      share|improve this question
















      I'm trying to develop a procedure that allows me to insert events on the google calendar.
      The procedure seems to work well. The event on the calendar is created but I can not, however, set a reminder different from the default one.



      This is my procedure:



       public string writeOnCalendar(
      string _ClientId
      , string _ClientSecret
      , string _Summary
      , string _Location
      , System.DateTime start_dateTime
      , string start_timeZone
      , System.DateTime end_dateTime
      , string end_timeZone
      , string _Email
      )
      try

      var r1 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 7 ;
      var r2 = new Google.Apis.Calendar.v3.Data.EventReminder Method = "popup", Minutes = 9 ;
      var erd = new Google.Apis.Calendar.v3.Data.Event.RemindersData UseDefault = false, Overrides = new[] r1, r2 ;

      string[] Scopes = Google.Apis.Calendar.v3.CalendarService.Scope.Calendar ;
      Google.Apis.Calendar.v3.Data.Event myEvent = new Google.Apis.Calendar.v3.Data.Event

      Summary = _Summary,
      Location = _Location,
      Reminders = erd,
      Start = new Google.Apis.Calendar.v3.Data.EventDateTime()

      DateTime = start_dateTime,
      TimeZone = start_timeZone
      ,
      End = new Google.Apis.Calendar.v3.Data.EventDateTime()

      DateTime = end_dateTime,
      TimeZone = end_timeZone
      ,
      //Recurrence = new System.String[]
      // "RRULE:FREQ=WEEKLY;BYDAY=MO"
      //,
      Attendees = new System.Collections.Generic.List<Google.Apis.Calendar.v3.Data.EventAttendee>()

      new Google.Apis.Calendar.v3.Data.EventAttendee() Email = _Email
      ,
      ;
      Google.Apis.Auth.OAuth2.ClientSecrets cs = new Google.Apis.Auth.OAuth2.ClientSecrets

      ClientId = _ClientId,
      ClientSecret = _ClientSecret
      ;
      string ApplicationName = "Google Calendar API .NET Quickstart";
      //Path where Json File is stored
      Google.Apis.Util.Store.FileDataStore store = new Google.Apis.Util.Store.FileDataStore(System.Web.HttpContext.Current.Server.MapPath("~/public/calendar-dotnet-quickstart.json"), true);
      Google.Apis.Auth.OAuth2.UserCredential credential = Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.AuthorizeAsync(cs, Scopes, "user", System.Threading.CancellationToken.None, store).Result;
      var service = new Google.Apis.Calendar.v3.CalendarService(new Google.Apis.Services.BaseClientService.Initializer()

      HttpClientInitializer = credential,
      ApplicationName = ApplicationName,
      );
      Google.Apis.Calendar.v3.EventsResource.InsertRequest request = service.Events.Insert(myEvent, "primary");
      request.SendNotifications = true;
      Google.Apis.Calendar.v3.Data.Event createdEvent = request.Execute();


      System.Web.HttpContext.Current.Response.Write(createdEvent.Status + "<br />");
      System.Web.HttpContext.Current.Response.Write(createdEvent.Id + "<br />");
      foreach (var r in createdEvent.Reminders.Overrides)

      System.Web.HttpContext.Current.Response.Write(" mins: " + r.Minutes + "<br />");

      return "";

      catch (System.Exception ex)

      System.Web.HttpContext.Current.Response.Write(ex.ToString());
      return ex.ToString();




      And this is my call to the procedure



      writeOnCalendar(
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
      , "xxxxxxxxxxxxxxxxxxxxxxxx"
      , "Lorem ipsum dolor sit amet"
      , "via tito speri 8"
      , new DateTime(2019, 2, 24, 15, 30, 0)
      , "America/Los_Angeles"
      , new DateTime(2019, 2, 24, 20, 30, 0)
      , "America/Los_Angeles"
      , "f.chiavistrelli2@gmail.com"
      )
      );


      Reading the page debugging it seems that everything went well




      confirmed



      97d33nj9so2jco7l1rgva64n50



      mins: 7



      mins: 9




      However, only the default 30 minute reminder is shown on the calendar.
      calendar result



      I tried and tried again. What am I doing wrong?







      c# calendar reminders






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 at 4:58









      Carlos Cavero

      1,5672923




      1,5672923










      asked Mar 8 at 1:48









      Francesco ChiavistrelliFrancesco Chiavistrelli

      11




      11






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55055594%2fgoogle-calendar-reminder-seems-not-works%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55055594%2fgoogle-calendar-reminder-seems-not-works%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved