สร้างโปรเจ็กต์
ก่อนที่จะส่งคำขอไปยัง Google Drive Activity API คุณต้องแจ้งให้ Google ทราบเกี่ยวกับไคลเอ็นต์และอนุญาตให้เข้าถึง API ดังกล่าว โดยใช้คอนโซล Google Cloud ในการสร้างโปรเจ็กต์ ซึ่งเป็นคอลเล็กชันการตั้งค่าและข้อมูลการเข้าถึง API ที่มีชื่อ
ตั้งค่าสภาพแวดล้อมของคุณ
หากต้องการเริ่มต้นใช้งาน Drive Activity API คุณต้องสร้างโปรเจ็กต์ใน Google Cloud Console เปิดใช้ API และสร้างข้อมูลเข้าสู่ระบบ
สร้างโปรเจ็กต์
คุณต้องมีโปรเจ็กต์ Google Cloud
เปิดใช้ API
ก่อนใช้ Google API คุณต้องเปิดใช้งานในโปรเจ็กต์ Google Cloud
คุณเปิด API ได้อย่างน้อย 1 รายการในโปรเจ็กต์ Google Cloud โปรเจ็กต์เดียว
สร้างข้อมูลเข้าสู่ระบบ
คุณสร้างข้อมูลเข้าสู่ระบบได้โดยใช้รหัสไคลเอ็นต์ OAuth หรือบัญชีบริการ
ดูข้อมูลเพิ่มเติมได้ที่สร้างข้อมูลเข้าสู่ระบบ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-09-14 UTC
[null,null,["อัปเดตล่าสุด 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"]]