Utwórz projekt
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Aby móc wysyłać żądania do interfejsu Google Drive Activity API, musisz powiadomić Google o swoim kliencie i zezwolić na dostęp do interfejsu API. W tym celu musisz użyć konsoli Google Cloud, aby utworzyć projekt, czyli nazwany zbiór ustawień i informacji dostępowych interfejsu API.
Konfigurowanie środowiska
Aby rozpocząć korzystanie z interfejsu Drive Activity API, musisz utworzyć projekt w konsoli Google Cloud, włączyć interfejs API i utworzyć dane logowania.
Tworzenie projektu
Musisz mieć projekt Google Cloud.
Włącz API
Zanim zaczniesz korzystać z interfejsów API Google, musisz je włączyć w projekcie Google Cloud.
W jednym projekcie Google Cloud możesz włączyć 1 lub więcej interfejsów API.
Tworzenie danych logowania
Dane logowania możesz utworzyć, używając identyfikatora klienta OAuth lub konta usługi.
Więcej informacji znajdziesz w artykule Tworzenie danych logowania.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-03-26 UTC.
[null,null,["Ostatnia aktualizacja: 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)."]]