Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Прежде чем вы сможете отправлять запросы к API активности Google Диска, вы должны уведомить Google о своем клиенте и разрешить доступ к API. Вы делаете это с помощью консоли Google Cloud для создания проекта, который представляет собой именованную коллекцию настроек и информации о доступе к API.
Настройте свою среду
Чтобы начать использовать Drive Activity API, вам необходимо создать проект в консоли Google Cloud, включить API и создать учетные данные.
Прежде чем использовать API Google, вам необходимо включить их в проекте Google Cloud. Вы можете включить один или несколько API в одном проекте Google Cloud.
В консоли Google Cloud включите API активности Google Диска.
Вы можете создать учетные данные, используя идентификатор клиента OAuth или учетную запись службы. Дополнительные сведения см. в разделе Создание учетных данных доступа .
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 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)."]]