Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Biblioteki klienta
Interfejs Google Wallet API opiera się na protokole HTTP i JSON, dzięki czemu każdy standardowy klient HTTP może wysyłać do niego żądania i analizować odpowiedzi.
Oficjalne biblioteki klienta interfejsów API Google zapewniają jednak lepszą integrację językową, wyższy poziom bezpieczeństwa i obsługę wywołań, które wymagają autoryzacji użytkownika. Biblioteki klienta są dostępne w wielu językach programowania. Dzięki nim nie musisz ręcznie konfigurować żądań HTTP ani analizować odpowiedzi.
Niektóre biblioteki klienta interfejsu API były wcześniej dostępne tutaj jako bezpośrednie pobranie.
Chociaż biblioteki te w dużej mierze zawierają te same interfejsy co biblioteki oficjalne, mogą zawierać nieco inne przestrzenie nazw, które mogą wymagać zaktualizowania kodu.
[null,null,["Ostatnia aktualizacja: 2025-08-29 UTC."],[[["\u003cp\u003eThe Google Wallet API can be accessed using any standard HTTP client, but official client libraries offer better language integration, security, and authorization support.\u003c/p\u003e\n"],["\u003cp\u003eOfficial client libraries are available in various programming languages and eliminate the need for manual HTTP request setup and response parsing.\u003c/p\u003e\n"],["\u003cp\u003eWhile previously downloadable libraries for Java, C#, and PHP exist, using official libraries is recommended for better compatibility.\u003c/p\u003e\n"],["\u003cp\u003eAndroid framework libraries, including a Flutter plugin and a Jetpack Compose button, are available for easier Google Wallet integration in Android apps.\u003c/p\u003e\n"]]],["The Google Wallet API utilizes HTTP and JSON, but official Google API client libraries offer enhanced language integration, security, and authorization support. These libraries eliminate the need for manual HTTP request setup and response parsing. Installation instructions are on the Google APIs website, with API samples on GitHub. Additionally, specific libraries for Flutter and Jetpack Compose are available. Some previously downloadable libraries exist but may require code namespace updates.\n"],null,["# Libraries\n\nClient libraries\n----------------\n\nThe Google Wallet API is built on HTTP and JSON, so any standard HTTP client can send requests to it\nand parse the responses.\n\nHowever, the [official Google APIs client libraries](https://developers.google.com/api-client-library/) provide better language integration, improved security,\nand support for making calls that require user authorization. The client libraries are available in\na number of programming languages; by using them you can avoid the need to manually set up HTTP\nrequests and parse the responses.\n\n\nVisit the [Google APIs client libraries](https://developers.google.com/api-client-library/) website for instructions on setting up in your preferred programming language.\nOnce installed, you can then follow the [API samples on GitHub](https://github.com/google-wallet/rest-samples).\n\n\nNote that some of the API client libraries were previously available here as direct downloads.\nWhile these libraries largely contain the same interfaces as the official libraries, they may contain slightly different namespaces which may require updating in your code.\nPreviously downloadable libraries\n\n- [Java](/static/wallet/downloads/google-walletobjects-v1-rev_20240607-java.zip)\n- [C#](/static/wallet/downloads/google-walletobjects-v1-rev_20240607-csharp.zip)\n- [PHP](/static/wallet/downloads/google-walletobjects-v1-rev_20240607-php.zip)\n\nAndroid Framework Libraries\n---------------------------\n\nThe following libraries are available for integrating Google Wallet using frameworks such as Flutter and Jetpack Compose:\n\n- [Google Wallet Flutter Plugin](https://github.com/google-wallet/flutter-plugin)\n- [Jetpack Compose button for Google Wallet](https://github.com/google-wallet/compose-wallet-button)"]]