Skip to content

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

@singhdilip1007

Description

@singhdilip1007

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions