How to request and send payments via Gmail API and Google Apps Script

做~自己de王妃 提交于 2019-12-13 01:53:59

问题


I want to request and send payments via Gmail API and Google Apps Script.

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.

So, based on that, there seems like there should be a way to use Google Apps Script to tap into the Gmail API to send and receive payments. But I can't find any documentation how to do that.

So how can I accomplish that?

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'
});

回答1:


There is currently no API or Apps Script service available for that use-case.

You should go to the Google Issue Tracker and submit a feature request for this.



来源:https://stackoverflow.com/questions/58604073/how-to-request-and-send-payments-via-gmail-api-and-google-apps-script

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!