Skip to content

Commit

Permalink
Merge pull request #111 from google-wallet/cloudlibs
Browse files Browse the repository at this point in the history
Use official client libraries for all samples
  • Loading branch information
stephenmcd authored Mar 13, 2024
2 parents 82f5e79 + f06679e commit be345d1
Show file tree
Hide file tree
Showing 54 changed files with 3,234 additions and 4,596 deletions.
2 changes: 1 addition & 1 deletion dotnet/DemoEventTicket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Auth()
.FromFile(keyFilePath)
.CreateScoped(new List<string>
{
"https://www.googleapis.com/auth/wallet_object.issuer"
WalletobjectsService.ScopeConstants.WalletObjectIssuer
})
.UnderlyingCredential;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/DemoFlight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Auth()
.FromFile(keyFilePath)
.CreateScoped(new List<string>
{
"https://www.googleapis.com/auth/wallet_object.issuer"
WalletobjectsService.ScopeConstants.WalletObjectIssuer
})
.UnderlyingCredential;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/DemoGeneric.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Auth()
.FromFile(keyFilePath)
.CreateScoped(new List<string>
{
"https://www.googleapis.com/auth/wallet_object.issuer"
WalletobjectsService.ScopeConstants.WalletObjectIssuer
})
.UnderlyingCredential;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/DemoGiftCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Auth()
.FromFile(keyFilePath)
.CreateScoped(new List<string>
{
"https://www.googleapis.com/auth/wallet_object.issuer"
WalletobjectsService.ScopeConstants.WalletObjectIssuer
})
.UnderlyingCredential;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/DemoLoyalty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Auth()
.FromFile(keyFilePath)
.CreateScoped(new List<string>
{
"https://www.googleapis.com/auth/wallet_object.issuer"
WalletobjectsService.ScopeConstants.WalletObjectIssuer
})
.UnderlyingCredential;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/DemoOffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Auth()
.FromFile(keyFilePath)
.CreateScoped(new List<string>
{
"https://www.googleapis.com/auth/wallet_object.issuer"
WalletobjectsService.ScopeConstants.WalletObjectIssuer
})
.UnderlyingCredential;

Expand Down
2 changes: 1 addition & 1 deletion dotnet/DemoTransit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Auth()
.FromFile(keyFilePath)
.CreateScoped(new List<string>
{
"https://www.googleapis.com/auth/wallet_object.issuer"
WalletobjectsService.ScopeConstants.WalletObjectIssuer
})
.UnderlyingCredential;

Expand Down
2 changes: 0 additions & 2 deletions dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ creating a pass class, updating issuer permissions, and more.
* Follow the steps outlined in the
[Google Wallet prerequisites](https://developers.google.com/wallet/generic/web/prerequisites)
to create the Google Wallet issuer account and Google Cloud service account
* Download the C#
[Google Wallet API Client library](https://developers.google.com/wallet/generic/resources/libraries#c)

## Environment variables

Expand Down
12 changes: 6 additions & 6 deletions dotnet/wallet-rest-samples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>wallet_rest_samples</RootNamespace>
<Nullable>disable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Apis.Auth" Version="1.57.0" />
<PackageReference Include="Google.Apis.IAMCredentials.v1" Version="1.57.0.2528" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.66.0" />
<PackageReference Include="Google.Apis.Walletobjects.v1" Version="1.66.0.3324" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.34.0" />
<!--
Set the Include path to the path where you saved the library locally.
-->
Expand All @@ -27,4 +27,4 @@
<CodeFiles Include="DemoTransit.cs" />
</ItemGroup>

</Project>
</Project>
Loading

0 comments on commit be345d1

Please sign in to comment.