首页 > 解决方案 > 使用 google API 和 javascript - 如何包含请求正文

问题描述

为了使用https://developers.google.com/calendar/v3/reference/events/update中所述的 events:update ,我需要包含一个请求正文(并在其中提供一个事件资源)。有谁知道如何使用 Javascript 代码做到这一点?

标签: javascriptrestgoogle-calendar-apigoogle-apis-explorer

解决方案


请尝试https://developers.google.com/calendar/v3/reference/events/update#try-it上的 JS 代码(打开 JavaScript 选项卡)。

*您可以将请求参数放在执行函数中。


推荐阅读