<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Calendar on tanaike - Google Apps Script, Gemini API, and Developer Tips</title>
    <link>https://tanaikech.github.io/tags/calendar/</link>
    <description>Recent content in Calendar on tanaike - Google Apps Script, Gemini API, and Developer Tips</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <copyright>&amp;copy; 2026. All rights reserved.</copyright>
    <lastBuildDate>Tue, 11 Oct 2022 10:21:24 +0900</lastBuildDate>
    <atom:link href="https://tanaikech.github.io/tags/calendar/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Creating and Deleting Multiple Events in Google Calendar by Batch Requests using Calendar API with Node.js</title>
      <link>https://tanaikech.github.io/2022/10/11/creating-and-deleting-multiple-events-in-google-calendar-by-batch-requests-using-calendar-api-with-node.js/</link>
      <pubDate>Tue, 11 Oct 2022 10:21:24 +0900</pubDate>
      <guid>https://tanaikech.github.io/2022/10/11/creating-and-deleting-multiple-events-in-google-calendar-by-batch-requests-using-calendar-api-with-node.js/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/33544a8f56cb5b4c2f96ceb29d6b2855&#34;&gt;Gists&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;These are the sample scripts for creating and deleting multiple events in Google Calendar by batch requests using Calendar API with Node.js.&lt;/p&gt;&#xA;&lt;p&gt;In the current stage, unfortunately, googleapis for Node.js cannot request batch requests. &lt;a href=&#34;https://github.com/googleapis/google-api-nodejs-client&#34;&gt;Ref&lt;/a&gt; So, when multiple events are created and deleted in Google Calendar using Node.js, it is required to run the script in a loop. In this case, the process cost becomes high. &lt;a href=&#34;https://cloud.google.com/blog/topics/developers-practitioners/efficient-file-management-using-batch-requests-google-apps-script&#34;&gt;Ref&lt;/a&gt; In this post, I would like to introduce creating and deleting multiple events in Google Calendar using batch request with Node.js.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sample Scripts for Creating New Event with Google Meet Link to Google Calendar using Various Languages</title>
      <link>https://tanaikech.github.io/2020/12/03/sample-scripts-for-creating-new-event-with-google-meet-link-to-google-calendar-using-various-languages/</link>
      <pubDate>Thu, 03 Dec 2020 16:04:18 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/12/03/sample-scripts-for-creating-new-event-with-google-meet-link-to-google-calendar-using-various-languages/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/94791d48823e9659aa376cf7f0161d9b&#34;&gt;Gists&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is the sample scripts for creating new event with Google Meet link to Google Calendar using various languages. When I saw &lt;a href=&#34;https://developers.google.com/calendar/create-events#conferencing&#34;&gt;the official document&lt;/a&gt; of &amp;ldquo;Add video and phone conferences to events&amp;rdquo;, in the current stage, I can see only the sample script for Javascript. But I saw the several questions related to this for various languages. So I published the sample scripts for creating new event with Google Meet link to Google Calendar using various languages.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Managing A Lot Of Google Calendar Events using Batch Requests with Google Apps Script</title>
      <link>https://tanaikech.github.io/2020/06/12/managing-a-lot-of-google-calendar-events-using-batch-requests-with-google-apps-script/</link>
      <pubDate>Fri, 12 Jun 2020 16:14:27 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/06/12/managing-a-lot-of-google-calendar-events-using-batch-requests-with-google-apps-script/</guid>
      <description>&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;This is the sample scripts for managing a lot of Google Calendar Events using the batch requests with Google Apps Script.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;description&#34;&gt;Description&lt;/h2&gt;&#xA;&lt;p&gt;When we want to manage the events of Google Calendar, we have 2 ways. One is the use of &lt;a href=&#34;https://developers.google.com/apps-script/reference/calendar&#34;&gt;Calendar service&lt;/a&gt;. Another is the use of &lt;a href=&#34;https://developers.google.com/calendar&#34;&gt;Calendar API&lt;/a&gt;. In the case of them, when we want to manage a lot of calendar events, unfortunately, both ways have no batch requests. Namely, for example, when a lot of events are deleted, &lt;a href=&#34;https://developers.google.com/apps-script/reference/calendar/calendar-event#deleteEvent()&#34;&gt;&lt;code&gt;deleteEvent()&lt;/code&gt;&lt;/a&gt; and &lt;a href=&#34;https://developers.google.com/calendar/v3/reference/events/delete&#34;&gt;Events: delete&lt;/a&gt; are required to be used in the loop. In this case, the process cost will be high. On the other hand, Calendar API can use &lt;a href=&#34;https://developers.google.com/calendar/batch&#34;&gt;the batch requests&lt;/a&gt;. But in this case, in order to use this batch requests with Google Apps Script, it is required to create the request body of &lt;code&gt;multipart/mixed&lt;/code&gt; by each user. Because there are no methods for automatically requests the batch requests. From this situation, here, I would like to introduce the simple sample scripts for creating, updating and deleting the events of Google Calendar using the batch requests with Google Apps Script.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Retrieving Event ID from Event URL of Google Calendar using Google Apps Script</title>
      <link>https://tanaikech.github.io/2020/01/09/retrieving-event-id-from-event-url-of-google-calendar-using-google-apps-script/</link>
      <pubDate>Thu, 09 Jan 2020 14:13:03 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/01/09/retrieving-event-id-from-event-url-of-google-calendar-using-google-apps-script/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/b366be5995be04f689c3d80b18363f5e&#34;&gt;Gists&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a sample script for retrieving the event ID from the event URL of Google Calendar using Google Apps Script.&lt;/p&gt;&#xA;&lt;p&gt;The event URL is like &lt;code&gt;https://www.google.com/calendar/event?###&lt;/code&gt;. At the event URL, &lt;code&gt;###&lt;/code&gt; of &lt;code&gt;https://www.google.com/calendar/event?###&lt;/code&gt; is not the event ID. So it is required to convert it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;sample-script&#34;&gt;Sample script&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-javascript&#34; data-lang=&#34;javascript&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;eventUrl&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;https://www.google.com/calendar/event?###&amp;#34;&lt;/span&gt;;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;eventId&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;Utilities&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;newBlob&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;Utilities&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;base64Decode&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;eventUrl&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;split&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;=&amp;#34;&lt;/span&gt;)[&lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;]))&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  .&lt;span style=&#34;color:#a6e22e&#34;&gt;getDataAsString&lt;/span&gt;()&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  .&lt;span style=&#34;color:#a6e22e&#34;&gt;split&lt;/span&gt;(&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34; &amp;#34;&lt;/span&gt;)[&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt;];&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;Logger&lt;/span&gt;.&lt;span style=&#34;color:#a6e22e&#34;&gt;log&lt;/span&gt;(&lt;span style=&#34;color:#a6e22e&#34;&gt;eventId&lt;/span&gt;);&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Running Google Apps Script by Event Notification from Google Calendar</title>
      <link>https://tanaikech.github.io/2020/01/09/running-google-apps-script-by-event-notification-from-google-calendar/</link>
      <pubDate>Thu, 09 Jan 2020 11:19:36 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/01/09/running-google-apps-script-by-event-notification-from-google-calendar/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/fbbfaa8f2a8a770424974aa16b9b6f3b&#34;&gt;Gists&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&lt;/h2&gt;&#xA;&lt;p&gt;This is a simple method running Google Apps Script by the event notification from Google Calendar.&lt;/p&gt;&#xA;&lt;h2 id=&#34;description&#34;&gt;Description&lt;/h2&gt;&#xA;&lt;p&gt;There are several event triggers in Google Apps Script. &lt;a href=&#34;https://developers.google.com/apps-script/guides/triggers&#34;&gt;Ref1&lt;/a&gt;, &lt;a href=&#34;https://developers.google.com/apps-script/guides/triggers/installable&#34;&gt;Ref2&lt;/a&gt; There is an event trigger for Google Calendar. The official document says &lt;code&gt;An installable calendar event trigger runs when a user&#39;s calendar events are updated—created, edited, or deleted.&lt;/code&gt;. &lt;a href=&#34;https://developers.google.com/apps-script/guides/triggers/installable#g_suite_application_triggers&#34;&gt;Ref3&lt;/a&gt; If I want to use the trigger when the event in the calendar is starts and finished, it is required to use Calendar API by preparing the URL for receiving from Google. &lt;a href=&#34;https://developers.google.com/calendar/v3/push&#34;&gt;Ref4&lt;/a&gt;, &lt;a href=&#34;https://developers.google.com/calendar/v3/reference/events/watch&#34;&gt;Ref5&lt;/a&gt; Also, there is the method that the start time are retrieved from all event lists and run the script for each start time. But in this case, it is required to check new events and manage the time-driven triggers for running the script. I thought that those are the higher hurdle for me. So I thought a workaround.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
