'JavaScript - How to get holiday list of a specific year using Google Calendar API?
I am using Google API v3 for retrieving the holiday lists, here is how I use the API: https://www.googleapis.com/calendar/v3/calendars/en.usa%23holiday%40group.v.calendar.google.com/events?key=myAPIKey
It returns a list of holidays of its own way (some of them are 2021 and some of them are 2022), but I want to get a list of holidays of my own specific year. Like I pass the year 2021, then it will return all the holidays of 2021, similarly, if I pass 2022, then it will return 2022. But I have no idea how to pass a year parameter, or I have no idea whether Google Calendar allows passing such parameter for holidays.
Can anyone please help me?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|