یک پروژه ایجاد کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
قبل از ارسال درخواست به Google Drive Activity API، باید Google را در مورد مشتری خود مطلع کنید و اجازه دسترسی به API را بدهید. این کار را با استفاده از کنسول Google Cloud برای ایجاد یک پروژه انجام می دهید که مجموعه ای نامگذاری شده از تنظیمات و اطلاعات دسترسی API است.
محیط خود را تنظیم کنید
برای شروع استفاده از Drive Activity API، باید یک پروژه در کنسول Google Cloud ایجاد کنید، API را فعال کنید و اعتبارنامه ایجاد کنید.
پروژه خود را ایجاد کنید
شما باید یک پروژه Google Cloud داشته باشید.
API را فعال کنید
قبل از استفاده از Google API، باید آنها را در پروژه Google Cloud روشن کنید. میتوانید یک یا چند API را در یک پروژه Google Cloud روشن کنید.
اعتبارنامه را ایجاد کنید
میتوانید اعتبارنامهها را با استفاده از شناسه مشتری OAuth یا حساب سرویس ایجاد کنید. برای اطلاعات بیشتر، به ایجاد اعتبار دسترسی مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-03-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-03-26 بهوقت ساعت هماهنگ جهانی."],[],[],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)."]]