wallet-samples icon indicating copy to clipboard operation
wallet-samples copied to clipboard

Walletobjects api service not on Maven?

Open dbhathena opened this issue 1 year ago • 4 comments

I am looking to implement the Google Wallet API in Java, and have been following the instructions here. However I noticed that the google-api-services-walletobjects artifact is not in Maven, and is only available as a jar download here, and is also not made available within the Google API Java Client. Why is this, and can it be added to Maven so my project can access the artifact without having to download and install the jar locally? Thanks!

dbhathena avatar May 09 '23 18:05 dbhathena

@dbhathena Do you use the jar file? I guess I will build my own pojos.

Updates of Jar files are hard to keep track of. Please explain the reason?

pfaffenrodt avatar Nov 15 '23 16:11 pfaffenrodt

@pfaffenrodt I downloaded the jar file and have been using that so far, which works fine but is unideal.

dbhathena avatar Nov 15 '23 20:11 dbhathena

~Same thing for PHP, why can't those libs be properly open-sourced in a git repo? For php, added to composer also... Thanks!~

I stand corrected...by myself. For PHP, one can (and should!) install the libs using composer:

{
// ...
  "require": {
    "php": ">=7.4",
    "google/apiclient": "^2.15.0"
  },
  "scripts": {
    "pre-autoload-dump": "Google\\Task\\Composer::cleanup"
  },
  "extra": {
    "google/apiclient-services": [
      "Walletobjects"
    ]
  }
}

... this will also install composer package google/apiclient-services as dependency. Source

Then the Walletobjects class is available in namespace Google\Service\Walletobjects.

I will update this repo with a MR for this.

razvanphp avatar Dec 03 '23 22:12 razvanphp

@dbhathena the same seems to be true for Java: https://github.com/googleapis/google-api-java-client-services/tree/main/clients/google-api-services-walletobjects/v1

razvanphp avatar Feb 03 '24 07:02 razvanphp