{"id":582,"date":"2022-05-30T02:34:12","date_gmt":"2022-05-30T02:34:12","guid":{"rendered":"https:\/\/apidemo.ddrive.cloud\/?p=582"},"modified":"2022-12-20T02:58:50","modified_gmt":"2022-12-20T02:58:50","slug":"%e3%82%b9%e3%83%97%e3%83%ac%e3%83%83%e3%83%89%e3%82%b7%e3%83%bc%e3%83%88-%e3%81%8b%e3%82%89%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc-%e3%81%ab%e4%ba%88%e5%ae%9a%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99","status":"publish","type":"post","link":"https:\/\/apidemo.ddrive.cloud\/?p=582","title":{"rendered":"Google \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089 Google \u30ab\u30ec\u30f3\u30c0\u30fc \u306b\u4e88\u5b9a\u3092\u51fa\u529b"},"content":{"rendered":"\n<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001Google \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u4e88\u5b9a\u3092\u5165\u529b\u3057\u3001Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u51fa\u529b\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30b7\u30fc\u30c8\u304c\u30b3\u30d4\u30fc\u53ef\u80fd\u3067\u3059\u3002\u307e\u305a\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u53cd\u6620\u3057\u305f\u3044Google \u30a2\u30ab\u30a6\u30f3\u30c8 \u3092\u9078\u629e\u3057\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8 \u3092\u30b3\u30d4\u30fc\u3057\u3066\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<a href=\"https:\/\/accounts.google.com\/AccountChooser?service=lso&amp;continue=https:\/\/docs.google.com\/spreadsheets\/d\/1NbptrwSlyrTLyhG_Z0d64YoFp_14D6n_Ch_RJ5325AI\/copy\" target=\"_new\" rel=\"noopener\" class=\"demo-button\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gfejp-demo.com\/wp-content\/uploads\/2022\/04\/google-sheets.png\" alt=\"\" class=\"wp-image-387\" width=\"45\" height=\"45\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/04\/google-sheets.png 480w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/04\/google-sheets-300x300.png 300w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/04\/google-sheets-150x150.png 150w\" sizes=\"auto, (max-width: 45px) 100vw, 45px\" \/> Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u64cd\u4f5c\u30b5\u30f3\u30d7\u30eb<\/a> \u203b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u30b3\u30d4\u30fc\u3059\u308bGoogle \u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u5fc5\u8981\u3067\u3059<br>\n\n\n\n<a href=\"https:\/\/accounts.google.com\/AccountChooser?service=lso&amp;continue=https:\/\/calendar.google.com\/\" target=\"_new\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Calendar_Product_Icon_512dp.png\" alt=\"\" class=\"wp-image-383\" width=\"48\" height=\"48\">\u4e88\u5b9a\u3092Google \u30ab\u30ec\u30f3\u30c0\u30fc \u3067\u78ba\u8a8d\u3059\u308b<\/a><br>\n\n\n\n<p> \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8 \u3092\u30b3\u30d4\u30fc\u3057\u305f\u3089\u3001\u9069\u5f53\u306a\u65e5\u4ed8\u306b\u4e88\u5b9a\u3092\u5165\u529b\u3057\u3001\u4ee5\u4e0b\u306e\u51fa\u529b\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u5f8c\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u30ea\u30f3\u30af\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u4e88\u5b9a\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"325\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.58.21.png\" alt=\"\" class=\"wp-image-603\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.58.21.png 778w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.58.21-300x125.png 300w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.58.21-768x321.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\uff1c\u5fdc\u7528\u7de8\uff1e<\/h2>\n\n\n\n<p><strong>1.\u30ab\u30ec\u30f3\u30c0\u30fc ID \u306e\u8a8d\u8b58<\/strong><\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u4efb\u610f\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u30ab\u30ec\u30f3\u30c0\u30fc ID \u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u81ea\u5206\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u8a2d\u5b9a\u304b\u3089\u300c\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u7d71\u5408\u300d\u3092\u958b\u304f\u3068\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"931\" height=\"615\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.23.23.png\" alt=\"\" class=\"wp-image-589\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.23.23.png 931w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.23.23-300x198.png 300w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.23.23-768x507.png 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/figure>\n\n\n\n<p>\u3082\u3063\u3068\u7c21\u5358\u306b\u5148\u7a0b\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8 \u306e Apps Script \u304b\u3089\u3053\u308c\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5148\u7a0b\u30b3\u30d4\u30fc\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30e1\u30cb\u30e5\u30fc\u306e\u62e1\u5f35\u6a5f\u80fd\uff1eApps Script\u3067\u958b\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002 <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.25.24.png\" alt=\"\" class=\"wp-image-592\" width=\"568\" height=\"375\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.25.24.png 744w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.25.24-300x198.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/figure>\n\n\n\n<p>\u3059\u3067\u306b\u30b3\u30fc\u30c9\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u4e0b\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u306f\u308a\u3064\u3051\u3066\u3001\u4ee5\u4e0b\u306e\u30a2\u30a4\u30b3\u30f3\u304b\u3089\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"116\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-20-11.49.06-1024x116.png\" alt=\"\" class=\"wp-image-695\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-20-11.49.06-1024x116.png 1024w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-20-11.49.06-300x34.png 300w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-20-11.49.06-768x87.png 768w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-20-11.49.06.png 1091w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\/**\n * Lists the calendars shown in the user&#39;s calendar list.\n * @see https:\/\/developers.google.com\/calendar\/api\/v3\/reference\/calendarList\/list\n *\/\nfunction listCalendars() {\n  let calendars;\n  let pageToken;\n  do {\n    calendars = Calendar.CalendarList.list({\n      maxResults: 100,\n      pageToken: pageToken\n\n    });\n    if (!calendars.items || calendars.items.length === 0) {\n      Logger.log(&#39;\u30ab\u30ec\u30f3\u30c0\u30fc\u304c\u3042\u308a\u307e\u305b\u3093\u3002&#39;);\n      return;\n    }\n    \/\/ Print the calendar id and calendar summary\n    for (const calendar of calendars.items) {\n      Logger.log(&#39;%s (ID: %s)&#39;, calendar.summary, calendar.id);\n    }\n    pageToken = calendars.nextPageToken;\n  } while (pageToken);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u5de6\u5074\u306e\u30b5\u30fc\u30d3\u30b9 \u304b\u3089Google Calendar API \u3092\u9078\u629e\u3057\u3066\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-3.png\" alt=\"\" class=\"wp-image-593\" width=\"537\" height=\"463\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-3.png 950w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-3-300x259.png 300w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-3-768x664.png 768w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><figcaption class=\"wp-element-caption\">\u6b21\u306b\u4e0a\u90e8\u306e\u30e1\u30cb\u30e5\u30fc\u4e0a\u304b\u3089 listCalendars \u306e\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u3092\u9078\u3073\u5b9f\u884c\u3057\u307e\u3059\u3002<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.31.20.png\" alt=\"\" class=\"wp-image-594\" width=\"577\" height=\"498\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.31.20.png 950w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.31.20-300x259.png 300w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/Screenshot-2022-05-30-12.31.20-768x664.png 768w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e0b\u90e8\u306e\u5b9f\u884c\u30ed\u30b0\u306b\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u540d\u524d\u3068ID\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-6-1024x467.png\" alt=\"\" class=\"wp-image-599\" srcset=\"https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-6-1024x467.png 1024w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-6-300x137.png 300w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-6-768x350.png 768w, https:\/\/apidemo.ddrive.cloud\/wp-content\/uploads\/2022\/05\/image-6.png 1167w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>2.\u4efb\u610f\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u4e88\u5b9a\u3092\u66f8\u304d\u51fa\u3059\u3088\u3046\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5909\u66f4<\/strong><\/p>\n\n\n\n<p>\u958b\u3044\u3066\u3044\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e15\u884c\u76ee\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\u3053\u308c\u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u3067\u306f\u306a\u304f\u30ab\u30ec\u30f3\u30c0\u30fcID\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b\u30ab\u30ec\u30f3\u30c0\u30fc\u3078\u306e\u66f8\u304d\u51fa\u3057\u3092\u6307\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>let Calendar = CalendarApp.getDefaultCalendar();\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u2193\nlet Calendar = CalendarApp.getCalendarById();<\/code><\/pre><\/div>\n\n\n\n<p>\u6b21\u306b\u5b9f\u884c\u30ed\u30b0\u3067\u51fa\u3066\u304d\u305f\u30ab\u30ec\u30f3\u30c0\u30fc ID \u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u306b &#8221; &#8221; \u306e\u30b3\u30c6\u30fc\u30b7\u30e7\u30f3\u30de\u30fc\u30af\u3068\u3068\u3082\u306b\u5165\u529b\u3057\u307e\u3059\u3002\u3042\u308b\u3044\u306f\u5165\u529b\u3057\u305f\u6587\u5b57\u3092\u9078\u629e\u3057\u306a\u304c\u3089Shift + 2 \u3092\u3057\u3066\u3082\u3001\u6587\u5b57\u5217\u3068\u3057\u3066\u8a8d\u8b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>getCalendarById(CALENDAR_ID);\n\u2193\ngetCalendarById(\u201dabcdefg\u201d);<\/code><\/pre><\/div>\n\n\n\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4fdd\u5b58\u3057\u3066\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u623b\u308a\u3001\u65e5\u4ed8\u90e8\u5206\u306e\u51fa\u529b\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u304b\u3001\u30e1\u30cb\u30e5\u30fc\u304b\u3089 Convert2Calender \u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4eca\u5ea6\u306f\u5225\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u4e88\u5b9a\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>&lt;\u304a\u307e\u3051 &#8211; \u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u4e88\u5b9a\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u51fa\u3057\uff1e<\/strong><\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u4e88\u5b9a\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u51fa\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u306b\u30b3\u30d4\u30fc\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u30b7\u30fc\u30c8\u30921\u679a\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Apps Script  \u306b\u623b\u3063\u3066\u4e00\u756a\u4e0b\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u90e8\u5206\u306f\u9069\u5f53\u306b\u66f8\u304d\u51fa\u3057\u305f\u3044\u671f\u9593\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>const startTime = new Date(&#8216;2022\/04\/01 00:00:00&#8217;); \/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u307f\u305f\u3044\u671f\u9593\u306e\u306f\u3058\u3081\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u8a18\u8ff0<br>const endTime = new Date(&#8216;2022\/12\/01 00:00:00&#8217;);\/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u307f\u305f\u3044\u671f\u9593\u306e\u7d42\u308f\u308a\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u8a18\u8ff0<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>function getCalendarEvents() {\n  var mySheet=SpreadsheetApp.getActiveSheet(); \/\/\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\n  const CALENDAR_ID = &#39;xxxxxxxxxxx&#39;; \/\/\u30ab\u30ec\u30f3\u30c0\u30fcID\u3092\u53d6\u5f97\n  \n  \/\/\u30d8\u30c3\u30c0\u3092\u5165\u529b\n  mySheet.getRange(&quot;A1&quot;).setValue(&quot;\u30a4\u30d9\u30f3\u30c8\u540d&quot;);\n  mySheet.getRange(&quot;B1&quot;).setValue(&quot;\u958b\u59cb\u6642\u9593&quot;);\n  mySheet.getRange(&quot;C1&quot;).setValue(&quot;\u7d42\u4e86\u6642\u9593&quot;);\n  mySheet.getRange(&quot;D1&quot;).setValue(&quot;\u30a4\u30d9\u30f3\u30c8\u767b\u9332\u8005\u540d&quot;);\n\n  const calendar = CalendarApp.getCalendarById(CALENDAR_ID);  \n  const startTime = new Date(&#39;2022\/04\/01 00:00:00&#39;); \/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u307f\u305f\u3044\u671f\u9593\u306e\u306f\u3058\u3081\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u8a18\u8ff0\n  const endTime = new Date(&#39;2022\/12\/01 00:00:00&#39;);\/\/\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u66f8\u304d\u8fbc\u307f\u305f\u3044\u671f\u9593\u306e\u7d42\u308f\u308a\u306e\u65e5\u4ed8\u3092\u5909\u66f4\u3057\u3066\u8a18\u8ff0\n   \n  const events = calendar.getEvents(startTime, endTime);\n  const values = [];\n  \n  for(const event of events){\n    const record = [\n      event.getTitle(),\n      \/\/event.getStartTime(),\n      Utilities.formatDate(event.getStartTime(),&quot;GMT+0900&quot;,&quot;yyyy\u5e74MM\u6708dd\u65e5 HH\u6642mm\u5206&quot;) ,\/\/\u6587\u5b57\u5217\u306b\u5909\u63db\n      \/\/event.getEndTime(),\n      Utilities.formatDate(event.getEndTime(),&quot;GMT+0900&quot;,&quot;yyyy\u5e74MM\u6708dd\u65e5 HH\u6642mm\u5206&quot;),\/\/\u6587\u5b57\u5217\u306b\u5909\u63db\n      event.getCreators()[0]\n    ];\n    values.push(record);\n  }\n \n  SpreadsheetApp.getActiveSheet().getRange(2, 1, values.length, values[0].length).setValues(values);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u524d\u3068\u540c\u69d8\u3001\u30ab\u30ec\u30f3\u30c0\u30fc ID \u306f\u8868\u793a\u3057\u305f\u3044\u3082\u306e\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u4fdd\u5b58\u3057\u3066 getCalendarEvents \u95a2\u6570\u3092\u9078\u3073\u3001\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u8a72\u5f53\u3059\u308b\u671f\u9593\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u306e\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001Google \u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u4e88\u5b9a\u3092\u5165\u529b\u3057\u3001Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u51fa\u529b\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u3066\u3044\u307e\u3059\u3002 \u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u30b7\u30fc\u30c8\u304c\u30b3\u30d4\u30fc\u53ef\u80fd\u3067\u3059\u3002\u307e\u305a\u306f\u30ab\u30ec\u30f3\u30c0\u30fc\u53cd\u6620\u3057\u305f\u3044Google \u30a2\u30ab\u30a6\u30f3 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-582","post","type-post","status-publish","format-standard","hentry","category-administrator"],"_links":{"self":[{"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=\/wp\/v2\/posts\/582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=582"}],"version-history":[{"count":15,"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=\/wp\/v2\/posts\/582\/revisions"}],"predecessor-version":[{"id":697,"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=\/wp\/v2\/posts\/582\/revisions\/697"}],"wp:attachment":[{"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apidemo.ddrive.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}