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.
Để đưa ra yêu cầu bất kỳ cho Maps Datasets API, bạn phải thêm:
Số hoặc mã nhận dạng dự án Google Cloud của bạn trong tiêu đề X-Goog-User-Project của yêu cầu. Giá trị này xác định dự án được dùng để tính toán hạn mức sử dụng và lập hoá đơn.
Mã thông báo OAuth trong tiêu đề Authorization của yêu cầu. Để biết thêm thông tin về cách sử dụng OAuth với Maps Datasets API, hãy xem phần Sử dụng OAuth.
Số dự án hoặc mã dự án trên Google Cloud trong URL yêu cầu. Giá trị này chỉ định dự án chứa tập dữ liệu. Mặc dù dự án này thường giống với dự án được chỉ định trong tiêu đề X-Goog-User-Project, nhưng bạn không bắt buộc phải sử dụng cùng một dự án.
Mã nhận dạng tập dữ liệu trong URL yêu cầu. Bất cứ khi nào bạn thực hiện một thao tác trên một tập dữ liệu cụ thể, bạn sẽ truyền mã nhận dạng của tập dữ liệu đó trong URL yêu cầu.
Bạn có thể đưa lệnh gcloud trực tiếp vào tiêu đề Authorization trong lệnh cURL để tạo mã thông báo mới cho mỗi yêu cầu, như minh hoạ trong ví dụ ở trên.
Ngoài ra, bạn có thể đặt một biến môi trường chứa mã thông báo, sau đó truyền biến môi trường đó trong yêu cầu:
[[["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-09-10 UTC."],[[["\u003cp\u003eAll Maps Datasets API requests require a Google Cloud project number or ID for billing and usage quota, specified in the \u003ccode\u003eX-Goog-User-Project\u003c/code\u003e header or using a service account.\u003c/p\u003e\n"],["\u003cp\u003eAn OAuth token is necessary for authentication and should be included in the \u003ccode\u003eAuthorization\u003c/code\u003e header of each request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL must contain the Google Cloud project number or ID and the dataset ID to specify the location of the dataset.\u003c/p\u003e\n"],["\u003cp\u003eAdditional parameters may be required for certain requests, as detailed in the specific request documentation.\u003c/p\u003e\n"],["\u003cp\u003eYou can obtain your Google Cloud project number or ID from the project's Overview page in the Cloud Console and generate an OAuth token using the \u003ccode\u003egcloud\u003c/code\u003e command.\u003c/p\u003e\n"]]],["To interact with the Maps Datasets API, requests must include: the Google Cloud project number or ID in the `X-Goog-User-Project` header for billing and quota (unless using a service account); an OAuth token in the `Authorization` header; the project number or ID in the URL; and the dataset ID in the URL. The project number and ID can be found on the project's overview page. An OAuth token can be generated using the `gcloud auth application-default print-access-token` command.\n"],null,[]]