Membuat project
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 memiliki nama.
Menyiapkan lingkungan Anda
Untuk mulai menggunakan Drive Activity API, Anda harus membuat project di
konsol Google Cloud, mengaktifkan API, dan membuat kredensial.
Membuat project
Anda harus memiliki project
Google Cloud.
Mengaktifkan API
Sebelum menggunakan Google API, Anda perlu 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 2023-09-14 UTC.
[null,null,["Terakhir diperbarui pada 2023-09-14 UTC."],[[["To use the Google Drive Activity API, you must first create a Google Cloud project and enable the API."],["You need to create credentials, either an OAuth client ID or a service account, to allow access to the API."],["Setting up your environment involves creating a project, enabling the Google Drive Activity API, and creating credentials for API access."]]],["To use the Google Drive Activity API, first create a Google Cloud project through the Google Cloud console. Next, enable the Google Drive Activity API within that project. Finally, create credentials to access the API, choosing between an OAuth client ID or a service account, as detailed in the \"Create access credentials\" documentation. These steps are necessary to allow client access and send requests to the API.\n"]]