<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>star__hoshi</author_name>
  <author_url>https://blog.hatena.ne.jp/star__hoshi/</author_url>
  <blog_title>star__hoshi's diary</blog_title>
  <blog_url>https://starhoshi.hatenablog.com/</blog_url>
  <categories>
    <anon>GAS</anon>
  </categories>
  <description>GASで祝日判定するとき、ググると Google Calendar の祝日カレンダーを使うなどが出てくるが、それを試したところ Exception: The Google Calendar is not enabled for the user. が出てしまい、権限をどうこうするのがだるかったので祝日APIからデータを取得する方法をとった。 Holidays JP API (日本の祝日API) を利用させてもらった。 コードはこんな感じ。今日の日付とAPIから取得した日付を比較している。 function isSyukujitsu(){ const today = new Date(); co…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstarhoshi.hatenablog.com%2Fentry%2F2022%2F10%2F11%2F091808&quot; title=&quot;GAS で Google Calendar を使わず祝日 API を利用し祝日判定する - star__hoshi&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-10-11 09:18:08</published>
  <title>GAS で Google Calendar を使わず祝日 API を利用し祝日判定する</title>
  <type>rich</type>
  <url>https://starhoshi.hatenablog.com/entry/2022/10/11/091808</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
