18 Commits

Author SHA1 Message Date
Jose Ugia
c27dea1460 Update image URLs 2025-12-22 22:30:53 +01:00
Stephen McDonald
f06679e2e9 Update Java setup instructions 2024-02-28 10:28:24 +11:00
Stephen McDonald
cd24293464 Use installable Google APIs lib for Java 2024-02-22 09:11:48 +11:00
Edson Yanaga
05d33fa185 Moving the classes do package com.google.developers.wallet.rest
Renaming methods to comply with the Java code conventions
Some code improvements
2023-10-25 15:39:45 -04:00
Alex Muramoto
d4ae65a670 fix: reverts changes that inadvertantly removed region tags 2023-10-23 16:34:06 -07:00
Edson Yanaga
2054994801 Fixed method names in README.md for Java 2023-10-23 11:45:50 -04:00
Edson Yanaga
11d9406f1c Fixed README with correct Java version
Fixed security issues in build.gradle
Updated all demo files with Java code conventions regarding method names.
2023-10-23 11:42:29 -04:00
Nick Alteen
957f0419c0 Added new use case examples (#51)
* Added examples for the following
  * Update a class/object
  * Patch a class/object
  * Add a message to a class/object
  * Expire an object
  * Create a JWT with new classes/objects
  * Create a JWT with existing classes/objects
* Fixed various minor formatting issues
* Made function/method names more general (ease of replication
   across different languages)
* Added checks for class/object presence
* Clarified some docstrings and comments
2022-12-02 09:55:02 -05:00
Dominik Mengelt
2040ecd695 added required trip type for transit passes (#44)
* added required trip type for transit passes
2022-11-07 09:22:46 -05:00
Nick Alteen
1599e2ee61 minor updates to .NET formatting, corrected links in java README 2022-10-12 16:48:27 -04:00
Nick Alteen
1a91242dc8 Update to make examples easily importable/testable
* Create language-specific READMEs with setup and usage instructions
* Add links to each language-specific README from main README
* Converted examples to use importable classes and functions
* Added class- and function-level docstrings and type hinting for IDEs
* Removed use of WALLET_* environment variables (now function arguments)
* General formatting updates (line length, indentation, etc.)
* Switched Java, .NET, and PHP to use Walletobjects libraries
* Updated JWT examples to show creating a class and object at once
* Fixed error with missing status parameter for certain pass types
* Added batch creation example for raw HTTP requests
* Removed generator scripts (doesn't work with the Wallet libraries)
2022-10-05 09:50:23 -04:00
Nick Alteen
253a67b9a5 Catch Java exception and update .NET class structure
* Added check for HttpResponseException in Java object GET examples (404 handling)
* Switched .NET examples to use classes and methods (resolved IDE error regarding compilation and top-level statements)
* Updated Gradle project for Java examples
* Corrected indentation in Node.JS examples
2022-09-07 09:32:09 -04:00
Nick Alteen
3d9f57bf7b Rename DemoGiftcard.java to DemoGiftCard.java
Update to make naming conventions consistent across files.
2022-09-06 12:55:22 -04:00
Nick Alteen
f6158c69b2 Rename DemoEventticket.java to DemoEventTicket.java 2022-09-06 12:55:11 -04:00
Nick Alteen
5a1ab2a455 Addition of batch pass creation examples
* Updated .NET and Java file names to be consistent
* Corrected indentation in .NET files
* Added missing quotes in HTTP request bodies
* Updated gradle version for Java examples
* Added missing JSON conversion for Java HTTP requests
* Added code to generate batch statements
2022-09-01 13:11:25 -04:00
Nick Alteen
0830612ab5 Add fix to JSON request body for Java demos
* Resolves issue with JSON body not being interpreted when making PUT/POST calls
* Reduce code length/complexity by instantiating request credentials within the request factory instead of in each request
2022-08-26 09:19:37 -04:00
Nick Alteen
fcddb6659e Initial commit of demo issuer creation and permissions update code samples for /wallet documentation
* Added issuer creation and permissions update examples to all templates
* Generated new outputs for each template
* Updated Google SDK version sfor C#, Java, PHP, and Python templates
* General formatting and linting updates
* Additional commenting
* Added stronger typing of variables in C# and Java examples
2022-08-19 13:40:05 -04:00
Stephen McDonald
d20d65b1d3 Initial 2022-05-05 15:52:06 +10:00