n8n-demo
。External
(一般個人帳號用這個)。n8n Sheets Test
APIs & Services → Credentials → Create Credentials → OAuth client ID
類型選 Web application
在「Authorized redirect URIs」加上 n8n 提供的網址,例如:
http://localhost:5678/rest/oauth2-credential/callback
按 Create → 會拿到 Client ID 和 Client Secret。
打開 n8n → 左側 Credentials → 新增 → 搜尋 Google Sheets
選擇 Google OAuth2 API
(有些版本是直接叫 Google Sheets API
)
貼上 Client ID / Secret
Scope:輸入
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/spreadsheets
https://www.googleapis.com/auth/drive.metadata
點 Sign in with Google → 出現 Google 授權畫面 → 登入並同意
成功後,n8n 就存好憑證了。
Get Many
By URL
→ 貼上你的試算表網址http://localhost:5678/rest/oauth2-credential/callback
)Sheet1
)A1:C10