Skip to content

Commit

Permalink
Docco
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Apr 18, 2024
1 parent 74b8bcb commit 29e316e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions getcalendar.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env bash

# Fetch calendar data; will be stored as calendar.json

CALENDAR_ID="[email protected]"
API_KEY="AIzaSyDJkXq1faq2G5NkFkFTh9Sikdpc2YXTVXs"
NOW=$(date '+%Y-%m-%dT%H:%M:%SZ')
OPTS="?key=${API_KEY}&timeMin=${NOW}&singleEvents=true&orderBy=startTime&timezone=UTC&maxResults=20"

curl -sS -o calendar.json "https://www.googleapis.com/calendar/v3/calendars/${CALENDAR_ID}/events${OPTS}" \
-H 'accept: application/json, text/javascript, */*; q=0.01' \
-H 'origin: https://events.apache.org'

0 comments on commit 29e316e

Please sign in to comment.