Javascript 从 Google Calendar API 获取一个国家的假期列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30833844/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 05:49:04 来源:igfitidea点击:
Get Holidays List of a Country from Google Calendar API
提问by Mohammed Safeer
I want to extract some country's holiday list from Google Calendar API using JavaScript.
我想使用 JavaScript 从 Google Calendar API 中提取某个国家/地区的假期列表。
Is it Possible? How Can I do this?
是否可以?我怎样才能做到这一点?
回答by Midhun1993
Yes, using google api you can do that.
是的,使用 google api 你可以做到这一点。
- 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
- 在 google developer account 中创建一个 API 应用程序。https://console.developers.google.com
- 从“凭据”选项卡中,您可以创建 API 密钥,您会得到类似“AIzaSyBcOT_DpEQysiwFmmmZXupKpnrOdJYAhhM”的内容
- 然后您可以使用此网址访问假期日历

