สร้างโปรเจ็กต์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณต้องแจ้งให้ Google ทราบเกี่ยวกับไคลเอ็นต์และอนุญาตให้เข้าถึง API ก่อนจึงจะส่งคำขอไปยัง Google Drive Activity API ได้ ซึ่งทำได้โดยใช้คอนโซล Google Cloud เพื่อสร้างโปรเจ็กต์ หรือคอลเล็กชันการตั้งค่าที่มีชื่อและข้อมูลการเข้าถึง API
ตั้งค่าสภาพแวดล้อม
หากต้องการเริ่มต้นใช้งาน Drive Activity API คุณต้องสร้างโปรเจ็กต์ในคอนโซล Google Cloud, เปิดใช้ API และสร้างข้อมูลเข้าสู่ระบบ
สร้างโปรเจ็กต์
คุณต้องมีโปรเจ็กต์ Google Cloud
เปิดใช้ API
คุณต้องเปิดใช้ API ของ Google ในโปรเจ็กต์ Google Cloud ก่อนจึงจะใช้ได้
คุณเปิด API อย่างน้อย 1 รายการในโปรเจ็กต์ Google Cloud โปรเจ็กต์เดียวได้
สร้างข้อมูลเข้าสู่ระบบ
คุณสร้างข้อมูลเข้าสู่ระบบได้โดยใช้รหัสไคลเอ็นต์ OAuth หรือบัญชีบริการ
โปรดดูข้อมูลเพิ่มเติมที่หัวข้อสร้างข้อมูลเข้าสู่ระบบ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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)."]]