recipe-email-drive-link
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEmail a Google Drive File Link
通过电子邮件发送Google Drive文件链接
PREREQUISITE: Load the following skills to execute this recipe:,gws-drivegws-gmail
Share a Google Drive file and email the link with a message to recipients.
前提条件: 加载以下技能以执行此方案:,gws-drivegws-gmail
分享Google Drive文件并通过电子邮件将链接及消息发送给收件人。
Steps
步骤
- Find the file:
gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}' - Share the file:
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}' - Email the link:
gws gmail +send --to client@example.com --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'
- 查找文件:
gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}' - 分享文件:
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}' - 发送邮件链接:
gws gmail +send --to client@example.com --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'