我需要验证用户提供的Google日历ID,但找不到calendarId
的正式格式。
我所能找到的只是这份文档,位于https://developers.google.com/calendar/v3/reference/calendars#resource-representations:
日历标识符。要检索日历ID,请致电 calendarList.list方法。如果要访问主日历 的当前登录用户,请使用“主要”关键字。
或位于https://developers.google.com/calendar/concepts/events-calendars:
每个日历都由一个ID(即电子邮件地址)标识。
此邮件地址是否有特定于Google日历ID的已知格式? 我天真的猜测是
.*@group.calendar.google.com