如何通过Gmail API和Google Apps脚本请求和发送付款 [英] How to request and send payments via Gmail API and Google Apps Script

查看:116
本文介绍了如何通过Gmail API和Google Apps脚本请求和发送付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过Gmail API和Google Apps脚本请求和发送付款.

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

此处是有关将Google Apps脚本与Gmail API结合使用的文档.

此处是有关如何使用Gmail手动请求和发送付款的信息.

此处为开发人员提供了有关如何使用Google Pay的信息.

因此,基于此,似乎应该有一种方法可以使用Google Apps脚本利用Gmail API来发送和接收付款.但是我找不到任何文档.

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.

那我该怎么做呢?

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

推荐答案

该用例当前没有可用的API或Apps Script服务.

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

您应该转到 Google Issue Tracker 并为此提交功能请求.

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

这篇关于如何通过Gmail API和Google Apps脚本请求和发送付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆