Lấy token google
https://developers.google.com/oauthplayground/ 🚀 Cách lấy CLIENT_ID + CLIENT_SECRET (Gmail API) 🔹 Bước 1: Tạo project Vào: https://console.cloud.google.com/ Chọn New Project Đặt tên → Create 🔹 Bước 2: Bật Gmail API Vào APIs & Services → Library Tìm: Gmail API Click → Enable 🔹 Bước 3: Tạo OAuth Client Vào APIs & Services → Credentials Click Create Credentials → OAuth Client ID 👉 Nếu chưa config OAuth: Chọn Configure consent screen Chọn External Điền: App name (ví dụ: Mail Tool) Email của bạn Save 🔹 Bước 4: Tạo credentials Application type: Web application Redirect URI: https://developers.google.com/oauthplayground 👉 Sau đó bạn sẽ thấy: CLIENT_ID = xxx CLIENT_SECRET = xxx 🔑 Bước 5: Lấy REFRESH_TOKEN (quan trọng) Bạn vào: 👉 https://developers.google.com/oauthplayground Setup: Click ⚙️ (góc phải) Tick: Use your own OAuth credentials Dán: CLIENT_ID CLIENT_SECRET Lấy token: Chọn scope: https://mail.google.com/ Click Authorize APIs Login Gmail Click Exchange authorizatio...