Mẫu cho Thư viện ứng dụng API của Google cho Java
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.
Các mẫu hiện có
Để xem mọi mẫu có sẵn trong Thư viện ứng dụng API của Google dành cho Java, hãy duyệt xem mẫu trên GitHub.
Mỗi mẫu có một tệp dẫn.html giải thích cách thiết lập và sử dụng mẫu. (Để xem hướng dẫn trong trình duyệt dễ dàng hơn, hãy truy cập http://htmlpreview.github.io/ rồi dán URL của tệp HTML vào hộp văn bản.)
Chúng tôi hoan nghênh đóng góp của các mẫu cho các API khác, như mô tả trong hướng dẫn của chúng tôi để trở thành người đóng góp.
Nếu bạn muốn yêu cầu một mẫu cho các API khác không được liệt kê ở đây, hãy đăng yêu cầu trên StackOverflow bằng thẻ dành riêng cho API hoặc xem Các yêu cầu và khiếm khuyết về tính năng của tệp để biết thêm thông tin.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\u003cp\u003eThe Google API Client Library for Java offers a variety of samples available for browsing on GitHub, each with instructions on setup and usage.\u003c/p\u003e\n"],["\u003cp\u003eUsers can easily view the sample instructions in a browser by pasting the HTML file's URL into the provided online tool.\u003c/p\u003e\n"],["\u003cp\u003eContributions for samples of other APIs are welcome and encouraged through the contributor guidelines.\u003c/p\u003e\n"],["\u003cp\u003eRequests for samples not currently available can be made on StackOverflow using API-specific tags or through the feature request process.\u003c/p\u003e\n"]]],[],null,["# Samples for the Google API Client Library for Java\n\nAvailable samples\n-----------------\n\nTo view all the samples that are available for the Google API Client Library\nfor Java,\nbrowse through the\n[samples on GitHub](https://github.com/googleapis/google-api-java-client-services#google-java-api-client-services).\nEach sample has an instructions.html file that explains how to set up and use\nthe sample. (To more easily view the instructions in a browser, visit\n\u003chttp://htmlpreview.github.io/\u003e and paste the URL\nof the HTML file into the text box.)\n\nWe welcome contributions for samples for other APIs, as described in our guide to\n[becoming a contributor](/api-client-library/java/google-api-java-client/contribute).\n\nIf you would like to request a sample for other APIs that are not listed here,\npost your request on [StackOverflow](http://stackoverflow.com/) with an API-specific\ntag, or see [File feature requests and defects](/api-client-library/java/google-api-java-client/support#file_feature_requests_and_defects) for more information."]]