ShopifyGraphQLNet 0.3.11
dotnet add package ShopifyGraphQLNet --version 0.3.11
NuGet\Install-Package ShopifyGraphQLNet -Version 0.3.11
<PackageReference Include="ShopifyGraphQLNet" Version="0.3.11" />
<PackageVersion Include="ShopifyGraphQLNet" Version="0.3.11" />
<PackageReference Include="ShopifyGraphQLNet" />
paket add ShopifyGraphQLNet --version 0.3.11
#r "nuget: ShopifyGraphQLNet, 0.3.11"
#:package ShopifyGraphQLNet@0.3.11
#addin nuget:?package=ShopifyGraphQLNet&version=0.3.11
#tool nuget:?package=ShopifyGraphQLNet&version=0.3.11
ShopifyGraphQLNet: .NET client for Shopify GraphQL API.
https://shopify.dev/api/storefront
Installation
ShopifyGraphQLNet is available on NuGet. Use the package manager console in Visual Studio to install it:
Install-Package ShopifyGraphQLNet
If you're using .NET Core, you can use the dotnet command from your favorite shell:
dotnet add package ShopifyGraphQLNet
Using ShopifyGraphQLNet
The AddShopifyGraphQLNetClient extension method is used to register services in the DI container.
Example for console app or tests:
var host = Host
.CreateDefaultBuilder()
.UseEnvironment(Environments.Development)
.ConfigureServices((context, services) =>
{
services.AddShopifyGraphQLNetClient(context.Configuration);
})
.Build();
productService = host.Services.GetRequiredService<IProductService>();
Required settings
ShopifyGraphQLNet using IOptions<ShopifyGraphQLNetClientConfig> for Store name and API Access Token.
By default, these parameters should be specified in appsettings.json file.
{
"ShopifyGraphQLNetClientConfig": {
"StoreName": "",
"StorefrontApiAccessToken": "",
"AdminApiAccessToken": "",
"ApiVersion": { "Value": "2022-04" }
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http.Polly (>= 6.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.