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

查看:27
本文介绍了如何通过 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 脚本服务.

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

您应该转到 Google 问题跟踪器并为此提交功能请求.

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

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

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