Utwórz projekt
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. Można to zrobić za pomocą konsoli Google Cloud do utworzenia projektu, który jest nazwanym zbiorem ustawień i informacji o dostępie do interfejsu API.
Konfigurowanie środowiska
Aby zacząć korzystać 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 włączyć je w projekcie Google Cloud.
Możesz włączyć 1 lub więcej interfejsów API w pojedynczym projekcie Google Cloud.
Tworzenie danych logowania
Możesz utworzyć dane logowania, korzystając z 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: 2023-09-14 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]