技能 效率工具 联系人同步到表格

联系人同步到表格

v20260401
recipe-sync-contacts-to-sheet
通过 gws-people 列出 Google 通讯录成员,并使用 gws-sheets 将姓名、邮箱和电话逐行写入 Google 表格,实现通讯录数据同步。
获取技能
225 次下载
概览

Export 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

  1. List contacts: gws people people listDirectoryPeople --params '{"readMask": "names,emailAddresses,phoneNumbers", "sources": ["DIRECTORY_SOURCE_TYPE_DOMAIN_PROFILE"], "pageSize": 100}' --format json
  2. Create a sheet: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Name", "Email", "Phone"]'
  3. Append each contact row: gws sheets +append --spreadsheet SHEET_ID --range 'Contacts' --values '["Jane Doe", "jane@company.com", "+1-555-0100"]'
信息
Category 效率工具
Name recipe-sync-contacts-to-sheet
版本 v20260401
大小 995B
更新时间 2026-04-08
语言