Przykłady biblioteki klienta interfejsów API Google dla języka Java
Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Dostępne próbki
Aby wyświetlić wszystkie przykłady dostępne dla biblioteki klienta interfejsów API Google dla języka Java, przejrzyj przykłady na GitHubie. Każdy przykład zawiera plik Instrukcje.html, w którym znajdziesz instrukcje konfigurowania tego przykładu i korzystania z niego. (Aby ułatwić sobie wyświetlenie instrukcji w przeglądarce, otwórz stronę http://htmlpreview.github.io/ i wklej URL pliku HTML w polu tekstowym).
Zachęcamy do przesyłania próbek innych interfejsów API zgodnie z opisem w naszym przewodniku po tym, jak zostać współtwórcą.
Jeśli chcesz poprosić o przykładowe użycie innych interfejsów API, których nie ma na tej liście, opublikuj swoje żądanie na StackOverflow, dodając tag powiązany z interfejsem API. Więcej informacji znajdziesz w artykule Przesyłanie żądań i defektów.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 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."]]