简体   繁体   English

将Google API与Jav​​aScript结合使用-如何包括请求正文

[英]Using google API with javascript - how to include request body

In order to use events:update as described in https://developers.google.com/calendar/v3/reference/events/update , I need to include a request body (and within it supply an events resource). 为了使用events:update,如https://developers.google.com/calendar/v3/reference/events/update中所述 ,我需要包含一个请求正文(并在其中提供事件资源)。 Would anyone know how to do this using Javascript code? 有人知道如何使用Javascript代码执行此操作吗?

Please try JS code available at https://developers.google.com/calendar/v3/reference/events/update#try-it (Open JavaScript tab). 请尝试https://developers.google.com/calendar/v3/reference/events/update#try-it (打开JavaScript标签)上提供的JS代码。

*You can put request parameters in execute function. *您可以将请求参数放入执行功能。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Google API调用中指定请求正文(使用适用于JavaScript的Google API客户端库) - Specify request body in Google API calls (using Google APIs Client Library for JavaScript) 发布请求正文Google API - Post request body google api Node.js请求帖子带有主体包括api键 - Nodejs request post with body include api key 使用工作表 API 和 XMLHttpRequest 将请求正文发送到谷歌工作表 - Send Request body to a google sheet using sheets API and XMLHttpRequest 缺少草稿邮件-JavaScript Gmail API-如何构建请求正文? - Missing draft message - javascript Gmail API - how to structure body of the request? 如何在 Cypress 中使用 JavaScript 在 GET API 的请求正文中发送 XML。 以 JSON 格式发送请求会给出响应,因为输入格式不正确 - How to send XML in request body of a GET API using JavaScript in Cypress. Sending request in JSON format gives response as Input was not well formed 在javascript中发布请求以json主体来休息api - post request to rest api with json body in javascript 如何使用 Google Maps JavaScript API 请求从当前位置到目的地的路线 - How to request directions from current location to destination using Google Maps JavaScript API 在浏览器上使用 javascript 在 Google API 上发送帖子请求 - Send post request on Google API using javascript on browser 使用Google自定义搜索元素api的Javascript XML Http请求 - Javascript XML Http request using the Google Custom Search Element api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM