יצירת פרויקט
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
לפני שתוכלו לשלוח בקשות ל-Google Drive Activity API, עליכם להודיע ל-Google על הלקוח שלכם ולאפשר גישה ל-API. כדי לעשות זאת, יוצרים פרויקט במסוף Google Cloud. הפרויקט הוא אוסף של הגדרות ומידע לגבי גישה ל-API, עם שם משלו.
הגדרת הסביבה
כדי להתחיל להשתמש ב-Drive Activity API, צריך ליצור פרויקט במסוף Google Cloud, להפעיל את ה-API וליצור פרטי כניסה.
יצירת הפרויקט
צריך פרויקט ב-Google Cloud.
הפעלת ה-API
לפני שמשתמשים ב-Google APIs, צריך להפעיל אותם בפרויקט ב-Google Cloud.
אפשר להפעיל ממשק API אחד או יותר בפרויקט אחד ב-Google Cloud.
יצירת פרטי הכניסה
אפשר ליצור פרטי כניסה באמצעות מזהה לקוח OAuth או חשבון שירות.
מידע נוסף זמין במאמר יצירת פרטי כניסה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-03-26 (שעון UTC).
[null,null,["עדכון אחרון: 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)."]]