Integromat - Google 日历 - 如何使用“进行 API 调用”向事件添加附件

问题描述 投票:0回答:1

我想使用 integromat“进行 API 调用”模块向 Google 日历活动添加附件。附件已上传至 Google 云端硬盘。
我不知道如何设置“进行 API 调用”模块。请参阅下面的屏幕截图。

我试图理解 integromat 对此的帮助,但这对我来说有点困难。 如果有人有这样的情况请帮助我。

google-calendar-api make.com
1个回答
0
投票

我很确定 Google Calendar API 不支持外部文件作为附件的一部分,但我可能是错的。我分享的当前工作场景将能够添加 Google 云端硬盘文件作为附件的一部分。请参考截图

您将需要使用以下内容,

URL:/v3/calendars/{{CALENDAR_ID}}/events/{{EVENT_ID}}?supportsAttachments=true

方法:补丁

身体

{
    "attachments": [{
        "fileId" : "",
        "fileUrl": "https://drive.google.com/file/d/1yyVVQxgwb7wF6RckN_1KoGtSmikjk2MR/view?usp=sharing",
        "mimeType": "image/png",
        "title": "TestImage.png"
    }]
}

您可以在此处参考该文档:https://developers.google.com/calendar/api/v3/reference/events/patch

© www.soinside.com 2019 - 2024. All rights reserved.