Mengaktifkan Google Workspace API

Sebelum menggunakan Google API, Anda harus mengaktifkannya di project Google Cloud. Anda dapat mengaktifkan satu atau beberapa API dalam satu project Google Cloud. Jika Anda belum memiliki project Google Cloud, lihat Membuat project Cloud.

Untuk mengaktifkan API di project Cloud Anda:

Konsol Google Cloud

  1. Di konsol Google Cloud, buka Menu > More products > Google Workspace > Product Library.

    Buka Library Produk

  2. Klik API yang ingin Anda aktifkan.
  3. Klik Enable.
  4. Untuk mengaktifkan API lainnya, ulangi langkah-langkah ini.

Google Cloud CLI

  1. Instal atau buka Google Cloud Command Line Interface (CLI).
  2. Jalankan perintah services enable, dengan menentukan layanan API mana yang akan diaktifkan.

    gcloud services enable API_SERVICE_ID

(Opsional) Mencoba Google Workspace API di aplikasi eksperimental

Jika Anda bereksperimen dengan Google Workspace, gunakan pintasan berikut, yang mengaktifkan Google Workspace API populer, dan membuat kredensial OAuth yang dapat Anda gunakan.

Jika Anda mengembangkan aplikasi yang mengakses informasi pengguna, Anda harus mengonfigurasi layar izin OAuth sebelum merilis aplikasi Anda.

Klik tombol ini untuk memilih atau membuat project Google Cloud, dan mengaktifkan Workspace API secara otomatis:

Aktifkan Workspace API

Di dialog yang muncul, klik Download client configuration dan simpan credentials.json ke direktori kerja Anda.

Lihat penjelajah Google Workspace API untuk mengetahui daftar lengkap semua API yang tersedia, dan untuk mencoba metode tertentu dari browser Anda.

API yang diaktifkan (klik untuk meluaskan)

Tombol ini mengaktifkan API berikut:

  • Admin SDK API
  • Apps Script API
  • Calendar API
  • Chat API
  • Classroom API
  • Docs API
  • Drive API
  • Forms API
  • Gmail API
  • Google Workspace Add-ons API
  • Google Keep API
  • Meet REST API
  • Sheets API
  • Slides API

Google Workspace API

Gunakan link Konsol Google Cloud berikut atau Google Cloud Command Line Interface (CLI) untuk mengaktifkan API Google Workspace tertentu di project Cloud Anda.

Aktifkan Admin SDK API
gcloud services enable admin.googleapis.com
Aktifkan Alert Center API
gcloud services enable alertcenter.googleapis.com
Aktifkan Apps Script API
gcloud services enable script.googleapis.com
Aktifkan CalDAV API
gcloud services enable caldav.googleapis.com
Aktifkan Calendar API
gcloud services enable calendar-json.googleapis.com
Aktifkan Chat API
gcloud services enable chat.googleapis.com
Aktifkan Classroom API
gcloud services enable classroom.googleapis.com
Aktifkan Cloud Identity API
gcloud services enable cloudidentity.googleapis.com
Aktifkan Cloud Search API
gcloud services enable cloudsearch.googleapis.com
Aktifkan Docs API
gcloud services enable docs.googleapis.com
Aktifkan Drive API
gcloud services enable drive.googleapis.com
Aktifkan Drive Activity API
gcloud services enable driveactivity.googleapis.com
Aktifkan Drive Labels API
gcloud services enable drivelabels.googleapis.com
Aktifkan Forms API
gcloud services enable forms.googleapis.com
Aktifkan Gmail API
gcloud services enable gmail.googleapis.com
Aktifkan Groups Migration API
gcloud services enable groupsmigration.googleapis.com
Aktifkan Groups Settings API
gcloud services enable groupssettings.googleapis.com
Aktifkan Google Workspace Add-ons API
gcloud services enable gsuiteaddons.googleapis.com
Aktifkan Google Keep API
gcloud services enable keep.googleapis.com
Aktifkan Enterprise License Manager API
gcloud services enable licensing.googleapis.com
Aktifkan Marketplace API
gcloud services enable appsmarket.googleapis.com
Aktifkan Marketplace SDK
gcloud services enable appsmarket-component.googleapis.com
Aktifkan Meet REST API
gcloud services enable meet.googleapis.com
Aktifkan People API
gcloud services enable people.googleapis.com
Mengaktifkan Postmaster Tools API
gcloud services enable gmailpostmastertools.googleapis.com
Aktifkan Reseller API
gcloud services enable reseller.googleapis.com
Aktifkan Sheets API
gcloud services enable sheets.googleapis.com
Aktifkan Slides API
gcloud services enable slides.googleapis.com
Aktifkan Tasks API
gcloud services enable tasks.googleapis.com
Aktifkan Vault API
gcloud services enable vault.googleapis.com

Langkah berikutnya

Pelajari cara kerja autentikasi dan otorisasi untuk Google Workspace API.