Cara Mendapatkan Client ID:
- Buka Google Cloud Console.
- Buat Proyek baru atau pilih proyek yang sudah ada.
- Masuk ke APIs & Services > Library, cari dan aktifkan Google Drive API.
- Masuk ke OAuth consent screen, atur tipe sebagai External. Tambahkan scope
.../auth/drive.file. Tambahkan email Anda ke daftar Test Users.
- Masuk ke Credentials, klik + Create Credentials > OAuth client ID.
- Pilih tipe aplikasi: Web application.
- Pada bagian Authorized JavaScript origins, tambahkan url:
http://localhost dan http://ytscript.test
- Klik Create, salin Client ID, lalu tempel di kolom input di atas.