recipe-email-drive-link

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Email a Google Drive File Link

通过电子邮件发送Google Drive文件链接

PREREQUISITE: Load the following skills to execute this recipe:
gws-drive
,
gws-gmail
Share a Google Drive file and email the link with a message to recipients.
前提条件: 加载以下技能以执行此方案:
gws-drive
,
gws-gmail
分享Google Drive文件并通过电子邮件将链接及消息发送给收件人。

Steps

步骤

  1. Find the file:
    gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'
  2. Share the file:
    gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'
  3. 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'
  1. 查找文件:
    gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'
  2. 分享文件:
    gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'
  3. 发送邮件链接:
    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'