ScientificBit.Shopify 0.1.5-alpha

This is a prerelease version of ScientificBit.Shopify.
dotnet add package ScientificBit.Shopify --version 0.1.5-alpha
                    
NuGet\Install-Package ScientificBit.Shopify -Version 0.1.5-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ScientificBit.Shopify" Version="0.1.5-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ScientificBit.Shopify" Version="0.1.5-alpha" />
                    
Directory.Packages.props
<PackageReference Include="ScientificBit.Shopify" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ScientificBit.Shopify --version 0.1.5-alpha
                    
#r "nuget: ScientificBit.Shopify, 0.1.5-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=ScientificBit.Shopify&version=0.1.5-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ScientificBit.Shopify&version=0.1.5-alpha&prerelease
                    
Install as a Cake Tool

Introduction

Do you struggle while consuming Shopify GraphQL APIs? ScientificBit.Shopify package simplifies connectivity with Shopify Storfront and Admin APIs.

How to Integrate

The package is built for .NET Core 8, and supports latest Shopify API version (2025-01). <br/><br/> He is how you can configure this package for Shopify APIs access:

Configure Shopify APIs

builder.Services.AddShopify(opts =>
{
    opts.Configuration = builder.Configuration.GetSection("Shopify");
    opts.MultipassSecret = ""; // TODO: Read from ENV
    opts.StoreDomain = "https://www.scientificbit.com"; // Your store website
    opts.AddSalesChannelTokens("sb", "shopify-admin-token", "shopify-storefront-token", "shopify-api-secret");
});

Add Shopify Webhook Authentication

builder.Services.AddAuthentication()
    .AddShopifyWebhookAuthentication(ShopifyAuthSchemes.ShopifyWebhookAuth);

OR with your own scheme name

builder.Services.AddAuthentication()
    .AddShopifyWebhookAuthentication("MyWebhookAuth");

Sample Shopify AppSettings.json

{
  "Shopify": {
    "ApiVersion": "2025-01",
    "ShopifyBaseUrl": "https://sb2.myshopify.com",
    "StoreDomain": "www.scientificbit.com",
    "SalesChannels": [
      {
        "SalesChannelId": "sb",
        "AdminApiToken": "",
        "StorefrontApiToken": "",
        "WebhookApiSecret": "",
        "DefaultMetafieldsNamespace": "sb-ecom-app",
        "DefaultInventoryLocationId": "1231231232"
      }
    ]
  },
}

Documentation

Please refer code and inline docs

Contribution

Contribution guidelines will be added shortly

Support The Developer

Please support me to help cover ongoing development, infrastructure costs, and the potential expansion of the project (including new features, testing, and documentation). <br/> Please contact asif@scientificbit.com for donations

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.5-alpha 107 6/23/2025
0.1.4-alpha 164 2/16/2025 0.1.4-alpha is deprecated because it has critical bugs.
0.1.2-alpha 86 2/11/2025
0.1.1-alpha 79 2/11/2025