更新时间:2023-02-14 14:41:37
Interestingly, I just answered a similar question here. Your intuition to use Google's JS client library is a good one. It's going to handle OAuth 2 for you, which is a requirement if you're going to do any manipulation of the Calendar data.
我的其他答案都具有指向博客文章(演示了客户端的配置和用户授权),以及插入Calendar事件的示例.
My other answer has both a link to a blog post that I authored (which demonstrates configuration of the client and user authorization), as well as an example of inserting a Calendar event.