本文介绍了从Google Calendar API获取国家/地区的假期清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用JavaScript从Google Calendar API中提取某些国家/地区的假期清单.

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

有可能吗?我该怎么办?

Is it Possible? How Can I do this?

推荐答案

是的,使用google api可以做到这一点.

Yes, using google api you can do that.

  • 在Google开发人员帐户中创建API应用. https://console.developers.google.com
  • 在凭据"标签中,您可以创建一个API密钥,然后像这样的"AIzaSyBcOT_DpEQysiwFmmmZXupKpnrOdJYAhhM"
  • 然后您可以使用此URL访问假期日历
  • Create an API app in google developer account.https://console.developers.google.com
  • From the "Credentials" tab you can create an API key, you getsomething like this "AIzaSyBcOT_DpEQysiwFmmmZXupKpnrOdJYAhhM"
  • Then you can access holiday calender using this url

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

这篇关于从Google Calendar API获取国家/地区的假期清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 16:30