Nội dung text API Google Sheet
4. Chọn Application Type = Web application 5. Đặt tên tùy ý (ví dụ: n8n Integration) 6. Trong mục Authorized redirect URIs, thêm: bash CopyEdit http://localhost:5678/rest/oauth2-credential/callback 7. Nhấn Create → sẽ nhận được Client ID và Client Secret
🧩 Bước 3: Tạo Google Sheets Credentials trong n8n 1. Truy cập vào n8n workflow editor 2. Ở góc trên phải, vào Credentials > + New credential 3. Chọn loại Google Sheets OAuth2 API 4. Điền thông tin: ○ Client ID: (lấy từ bước trên) ○ Client Secret: (lấy từ bước trên) Scopes: plaintext CopyEdit https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/drive.readonly ○ ○ Authentication URI: https://accounts.google.com/o/oauth2/v2/auth ○ Token URI: https://oauth2.googleapis.com/token ○ Callback URL: http://localhost:5678/rest/oauth2-credential/callback 5. Nhấn Connect OAuth Account, trình duyệt sẽ mở ra → đăng nhập Google → cho phép quyền 6. Sau khi kết nối thành công, credentials sẽ được lưu