recipe-sync-contacts-to-sheet
作者: Google
將 Google 通訊錄目錄匯出至 Google Sheets 試算表。
npx skills add https://github.com/googleworkspace/cli --skill recipe-sync-contacts-to-sheetExport Google Contacts to Sheets
PREREQUISITE: Load the following skills to execute this recipe:
gws-people,gws-sheets
Export Google Contacts directory to a Google Sheets spreadsheet.
Steps
- List contacts:
gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json - Create a sheet:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]' - Append each contact row:
gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "[email protected]", "+1-555-0100"]'
來自 Google 的更多技能
gws-modelarmor-sanitize-response
Google
Google Model Armor:透過 Model Armor 模板淨化模型回應。
gws-people
Google
管理聯絡人與個人資料。
gws-shared
Google
gws CLI:用於認證、全域旗標與輸出格式化的共享模式。
gws-sheets
Google
Google Sheets:讀取和寫入試算表。
gws-sheets-append
Google
Google Sheets:將一行資料附加到試算表中。
gws-sheets-read
Google
從試算表中讀取值。
gws-slides
Google
Google Slides:讀取與撰寫簡報。
gws-tasks
Google
Google Tasks:管理任務清單與任務。