SKILL.md
readonlyread-only
name
recipe-email-drive-link
description
分享 Google Drive 檔案,並透過電子郵件將連結與訊息傳送給收件人。
透過電子郵件傳送 Google Drive 檔案連結
先決條件: 載入以下技能以執行此配方:
gws-drive、gws-gmail
分享 Google Drive 檔案,並透過電子郵件將連結與訊息傳送給收件人。
步驟
- 尋找檔案:
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'






