Membuat project
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Sebelum dapat mengirim permintaan ke Google Drive Activity API, Anda harus memberi tahu Google tentang
klien Anda dan mengizinkan akses ke API. Anda melakukannya dengan menggunakan
konsol Google Cloud untuk membuat project, yang merupakan kumpulan setelan
dan informasi akses API yang diberi nama.
Menyiapkan lingkungan Anda
Untuk mulai menggunakan Drive Activity API, Anda harus membuat project di
konsol Google Cloud, mengaktifkan API, dan membuat kredensial.
Buat project Anda
Anda harus memiliki project Google Cloud.
Mengaktifkan API
Sebelum menggunakan Google API, Anda harus mengaktifkannya di project Google Cloud.
Anda dapat mengaktifkan satu atau beberapa API dalam satu project Google Cloud.
Membuat kredensial
Anda dapat membuat kredensial menggunakan client ID OAuth atau akun layanan.
Untuk mengetahui informasi selengkapnya, lihat Membuat kredensial akses.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-03-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-03-26 UTC."],[],[],null,["# Create a project\n\nBefore you can send requests to Google Drive Activity API, you must notify Google about\nyour client and allow access to the API. You do this by using the\nGoogle Cloud console to create a project, which is a named collection of settings\nand API access information.\n\nSet up your environment\n-----------------------\n\nTo get started using Drive Activity API, you must create a project in the\nGoogle Cloud console, enable the API, and create credentials.\n\n### Create your project\n\nYou must have a [Google Cloud\nproject](../../../../workspace/guides/create-project).\n\n### Enable the API\n\nBefore using Google APIs, you need to turn them on in a Google Cloud project. You can turn on one or more APIs in a single Google Cloud project.\n\n- In the Google Cloud console, enable the Google Drive Activity API.\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=driveactivity.googleapis.com)\n\n### Create the credentials\n\nYou can create credentials using either an OAuth client ID or a service account.\nFor more information, see [Create access\ncredentials](https://developers.google.com/workspace/guides/create-credentials)."]]