Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with generate google passes using .Net C# #83

Closed
singhdilip1007 opened this issue Aug 7, 2023 · 2 comments
Closed

Problem with generate google passes using .Net C# #83

singhdilip1007 opened this issue Aug 7, 2023 · 2 comments

Comments

@singhdilip1007
Copy link

Hi,

I tried to implement C# code to generate google generic pass but no success I got. I tried lost of docs & article but didn't found a fruitful result. Anyone can help me to generate google pass using .NET C# please? I've tried all those steps with VS 2022 like below:

Prerequisites

Environment variables

The following environment variables must be set. Alternatively, you can update
the code files to set the values directly. They can be found in the constructor
for each class file.

Enviroment variable Description Example
GOOGLE_APPLICATION_CREDENTIALS Path to a Google Cloud service account key file /path/to/key.json

How to use the code samples

  1. Open the wallet-rest-samples.csproj file
    in your .NET editor of choice.

  2. Copy the path to the Google Wallet API Client library (
    Google.Apis.Walletobjects.v1.csproj file) you downloaded. If needed, update
    the path in wallet-rest-samples.csproj (line
    19).

    <CodeFiles Include="lib/Google.Apis.Walletobjects.v1.cs" />
  3. Build the project to install the dependencies.

  4. In your C# code, import a demo class and call its method(s).

@stephenmcd
Copy link
Contributor

Could you provide more detail about what didn't work?

@stephenmcd
Copy link
Contributor

I'm going to close this since you've received some assistance for the issue on #72

In spite of it being successful in this case, I would ask you not to cross-post on multiple issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants