This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch preview/calendar
in repository https://gitbox.apache.org/repos/asf/comdev-events-site.git
The following commit(s) were added to refs/heads/preview/calendar by this push:
new 144841d Update getcalendar.sh
144841d is described below
commit 144841d7013f3c98773e22cfe8c451e2da1590d3
Author: Sebb <[email protected]>
AuthorDate: Fri Apr 19 09:33:38 2024 +0100
Update getcalendar.sh
---
getcalendar.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/getcalendar.sh b/getcalendar.sh
index 260b853..b337768 100644
--- a/getcalendar.sh
+++ b/getcalendar.sh
@@ -7,6 +7,12 @@ 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"
+echo "Fetching calendar data"
+ls -l calendar.json
+
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'
+
+echo "Fetched data"
+ls -l calendar.json