【发布时间】:2019-10-29 18:53:04
【问题描述】:
我想通过 Gmail API 和 Google Apps 脚本请求和发送付款。
Here is documentation for using Google Apps Script with the Gmail API.
Here is information on how to manually request and send payments using Gmail.
Here is information for developers on how to use Google Pay.
因此,基于此,似乎应该有一种方法可以使用 Google Apps 脚本来利用 Gmail API 来发送和接收付款。但我找不到任何文档如何做到这一点。
那我该怎么做呢?
Code.gs// Send an email with a file from Google Drive attached as a PDF.
var file = DriveApp.getFileById('1234567890abcdefghijklmnopqrstuvwxyz');
GmailApp.sendEmail('mike@example.com', 'Attachment example', 'Please see the attached file.', {
attachments: [file.getAs(MimeType.PDF)],
name: 'Automatic Emailer Script'
});
【问题讨论】:
-
检查了 Gmail API;没有支持此功能的端点。它只能通过 Gmail 的用户界面使用。
标签: javascript api google-apps-script gmail google-workspace