我正在使用Google Calendar API V3。
我试图像这样列出所选国家/地区的所有假期 https://www.googleapis.com/calendar/v3/calendars/en.uk%23holiday@group.v.calendar.google.com/events?key=mykey
但是首先,我需要使用所有受支持的国家/地区ID构建选择。 我在这里找到了国家/地区ID列表: https://gist.github.com/mattn/1438183
是否存在可以获取Google公共假期日历所有受支持的国家/地区ID的API调用?
答案 0 :(得分:0)
这里更新了 2020 年 1 月的 ISO 3166-2 列表到谷歌日历名称:
重要!对于所有未列出的国家/地区,都使用 ISO 3166-2,因此,对于阿尔巴尼亚,它是 al。
{"au", "australian"},
{"at", "austrian"},
{"br", "brazilian"},
{"bg", "bulgarian"},
{"ca", "canadian"},
{"cn", "china"},
{"hr", "croatian"},
{"cz", "czech"},
{"dk", "danish"},
{"fi", "finnish"},
{"fr", "french"},
{"de", "german"},
{"gr", "greek"},
{"hk", "hong_kong"},
{"hu", "hungarian"},
{"in", "indian"},
{"id", "indonesian"},
{"ie", "irish"},
{"il", "jewish"},
{"it", "italian"},
{"jp", "japanese"},
{"lv", "latvian"},
{"lt", "lithuanian"},
{"my", "malaysia"},
{"mx", "mexican"},
{"nl", "dutch"},
{"nz", "new_zealand"},
{"no", "norwegian"},
{"ph", "philippines"},
{"pl", "polish"},
{"pt", "portuguese"},
{"ro", "romanian"},
{"ru", "russian"},
{"sa", "saudiarabian"},
{"sg", "singapore"},
{"sk", "slovak"},
{"si", "slovenian"},
{"kr", "south_korea"},
{"es", "spain"},
{"se", "swedish"},
{"tw", "taiwan"},
{"tl", "thai"},
{"tr", "turkish"},
{"ua", "ukrainian"},
{"us", "usa"},
{"vn", "vietnamese"}