【问题标题】:Integromat - Google Calendar - How to add attachment to event with "Make an API call"Integromat - Google 日历 - 如何使用“进行 API 调用”向事件添加附件
【发布时间】:2021-08-11 14:29:43
【问题描述】:

我想通过 integromat“进行 API 调用”模块向 Google 日历活动添加附件。之前上传到 Google 云端硬盘的附件。
我不知道如何设置“进行 API 调用”模块。请看下面的截图。

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

感谢您的帮助!

【问题讨论】:

    标签: api google-calendar-api call integromat


    【解决方案1】:

    我很确定 Google Calendar API 不支持将外部文件作为附件的一部分,但我可能错了。我共享的当前工作方案将能够添加 Google Drive File 作为附件的一部分。请参考截图,

    你需要使用以下,

    网址:/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

    【讨论】:

    • 谢谢。它适用于谷歌驱动器文件,是的,它不适用于外部 url 文件。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-06
    • 2012-12-21
    • 1970-01-01
    相关资源
    最近更新 更多