Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trước khi có thể gửi yêu cầu đến API Hoạt động trên Google Drive, bạn phải thông báo cho Google về ứng dụng của mình và cho phép truy cập vào API. Bạn có thể làm điều này bằng cách sử dụng Google Cloud Console để tạo một dự án. Dự án là một tập hợp có tên gồm các chế độ cài đặt và thông tin truy cập API.
Thiết lập môi trường
Để bắt đầu sử dụng API Hoạt động trên Drive, bạn phải tạo một dự án trong Google Cloud Console, bật API và tạo thông tin xác thực.
Bạn có thể tạo thông tin xác thực bằng mã ứng dụng khách OAuth hoặc tài khoản dịch vụ.
Để biết thêm thông tin, hãy xem phần Tạo thông tin xác thực truy cập.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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)."]]