Get Holidays List of a Country from Google Calenda

2020-02-23 04:57发布

问题:

I want to extract some country's holiday list from Google Calendar API using JavaScript.

Is it Possible? How Can I do this?

回答1:

Yes, using google api you can do that.

  • Create an API app in google developer account .https://console.developers.google.com
  • From the "Credentials" tab you can create an API key, you get something like this "AIzaSyBcOT_DpEQysiwFmmmZXupKpnrOdJYAhhM"
  • Then you can access holiday calender using this url

https://www.googleapis.com/calendar/v3/calendars/en.uk%40holiday.calendar.google.com/events?key=yourAPIKey