Panel / Google Drive

Google Drive & Auto Ekspor

Ekspor otomatis tiap stok penuh & upload hasilnya ke Google Drive. Ekspor manual di halaman Ekspor tetap berjalan normal.

Koneksi Google Drive
ID folder tujuan di Drive. Ambil dari URL folder: drive.google.com/drive/folders/ID-INI
Cron membuat job ekspor otomatis saat stok siap ekspor ≥ angka ini.
Auto Ekspor Aktif (cron ≥ threshold)
Upload ke Google Drive
Langkah Setup (sekali saja)
  1. Buka Google Cloud Console → Credentials → Create Credentials → OAuth client ID.
  2. Application type: Web application. Authorized redirect URI wajib persis:
    https://bank-agc.uyak.eu.org/drive_setup.php
  3. Enable Google Drive API untuk project itu.
  4. Isi Client ID & Client Secret di kiri, klik Simpan.
  5. Klik tombol di bawah → pilih akun Google → izinkan.
  6. Selesai — refresh token tersimpan. Cron otomatis mengunggah setiap job auto yang selesai.
Catatan: consent screen mode "Testing" → token kadaluarsa ±7 hari; set status aplikasi In production agar permanen.