Skip to content

Commit

Permalink
Merge pull request #95 from kanmu/winebarrel-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
winebarrel authored Nov 14, 2024
2 parents f6ec08d + 9b4252f commit 7272a45
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

Go language library to check Japanese holidays using [NAOJ Calendar](https://calendar.google.com/calendar/embed?src=2bk907eqjut8imoorgq1qa4olc%40group.calendar.google.com).

```sh
curl -s -H "X-goog-api-key: $JHOL_API_KEY" \
'https://www.googleapis.com/calendar/v3/calendars/2bk907eqjut8imoorgq1qa4olc%40group.calendar.google.com/events?showDeleted=false&singleEvents=true&orderBy=startTime&timeMin=2019-01-01T00:00:00Z&maxResults=100' \
| jq -c '.items[] | {start, summary}'
```

## Preparation

1. Enable Google Calendar API.
Expand Down Expand Up @@ -56,18 +62,6 @@ func main() {
}
```

## Limitation

Google Calendar events are limited in duration. For example, as of today (Jun 17th, 2023) you cannot get public holidays prior to 2022.

Check below command for details:

```sh
curl -s -H "X-goog-api-key: $JHOL_API_KEY" \
'https://www.googleapis.com/calendar/v3/calendars/ja.japanese%23holiday%40group.v.calendar.google.com/events?showDeleted=false&singleEvents=true&orderBy=startTime&timeMin=2019-01-01T00:00:00Z&maxResults=100' \
| jq -c '.items[] | {start, summary}'
```

# CLI

## Installation
Expand Down

0 comments on commit 7272a45

Please sign in to comment.