VeeFriends.ShopifySync.WhatNot
5.0.64
dotnet add package VeeFriends.ShopifySync.WhatNot --version 5.0.64
NuGet\Install-Package VeeFriends.ShopifySync.WhatNot -Version 5.0.64
<PackageReference Include="VeeFriends.ShopifySync.WhatNot" Version="5.0.64" />
paket add VeeFriends.ShopifySync.WhatNot --version 5.0.64
#r "nuget: VeeFriends.ShopifySync.WhatNot, 5.0.64"
// Install VeeFriends.ShopifySync.WhatNot as a Cake Addin #addin nuget:?package=VeeFriends.ShopifySync.WhatNot&version=5.0.64 // Install VeeFriends.ShopifySync.WhatNot as a Cake Tool #tool nuget:?package=VeeFriends.ShopifySync.WhatNot&version=5.0.64
VeeFriends.ShopifySync 🛍️🔁
VeeFriends.ShopifySync is a .NET library that provides a flexible and extensible framework for synchronizing data between various e-commerce platforms and Shopify. Currently, it supports integration with the WhatNot platform.
Features
- Abstract base classes for creating platform-specific implementations
- GraphQL request builder for easy query construction
- Error handling and custom exception types
- Dependency Injection support
- Asynchronous operations
Installation
Install the VeeFriends.ShopifySync NuGet package in your project:
dotnet add package VeeFriends.ShopifySync
Usage
1. Configuration
First, configure the services in your Startup.cs
or Program.cs
file:
using VeeFriends.ShopifySync.Services;
using VeeFriends.ShopifySync.WhatNot;
public void ConfigureServices(IServiceCollection services)
{
services.ShopifySync()
.AddWhatNot(options =>
{
options.ApiUrl = "https://whatnot-api-url.com";
// Add other WhatNot-specific configuration
});
}
2. Using the WhatNot Seller Platform
Inject the WhatNotSellerPlatform
into your service or controller:
public class MyService
{
private readonly WhatNotSellerPlatform _whatNotPlatform;
public MyService(WhatNotSellerPlatform whatNotPlatform)
{
_whatNotPlatform = whatNotPlatform;
}
public async Task<WhatNotProduct> GetProductAsync(string productId)
{
var requestOptions = new WhatNotRequestOptions
{
AccessToken = "your-access-token"
};
return await _whatNotPlatform.GetProduct(productId, requestOptions);
}
public async Task<WhatNotOrder> GetOrderAsync(string orderId)
{
var requestOptions = new WhatNotRequestOptions
{
AccessToken = "your-access-token"
};
return await _whatNotPlatform.GetOrder(orderId, requestOptions);
}
}
3. Error Handling
The library includes custom error handling. Errors are wrapped in an ErrorModel
and thrown as an ErrorException
:
try
{
var product = await _whatNotPlatform.GetProduct(productId, requestOptions);
}
catch (ErrorException ex)
{
Console.WriteLine($"An error occurred: {ex.Message}");
// Handle the error appropriately
}
Extending the Library
Creating a New Platform Integration
To add support for a new platform:
- Create a new class that inherits from
SellerHttpClient<TRequestOptions>
. - Implement a new
SellerPlatform<TProduct, TOrder, TRequestOptions>
for your platform. - Create platform-specific
ProductModel
andOrderModel
classes. - Add an extension method to
ShopifySyncCollection
for easy configuration.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net9.0
- VeeFriends.ShopifySync (>= 5.0.64)
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 |
---|---|---|
5.0.64 | 0 | 1/18/2025 |
5.0.63 | 0 | 1/17/2025 |
5.0.62 | 0 | 1/17/2025 |
5.0.61 | 0 | 1/17/2025 |
5.0.60 | 0 | 1/17/2025 |
5.0.59 | 0 | 1/17/2025 |
5.0.58 | 34 | 1/17/2025 |
5.0.57 | 13 | 1/17/2025 |
5.0.56 | 39 | 1/17/2025 |
5.0.55 | 38 | 1/17/2025 |
5.0.54 | 49 | 1/17/2025 |
5.0.52 | 16 | 1/17/2025 |
5.0.51 | 61 | 1/16/2025 |
5.0.49 | 94 | 1/16/2025 |
5.0.47 | 34 | 1/16/2025 |
5.0.46 | 88 | 1/16/2025 |
5.0.45 | 60 | 1/16/2025 |
5.0.44 | 86 | 1/16/2025 |
5.0.43 | 58 | 1/16/2025 |
5.0.42 | 39 | 1/15/2025 |
5.0.41 | 36 | 1/15/2025 |
5.0.40 | 62 | 1/15/2025 |
5.0.39 | 87 | 1/15/2025 |
5.0.38 | 82 | 1/15/2025 |
5.0.37 | 86 | 1/15/2025 |
5.0.36 | 111 | 1/15/2025 |
5.0.35 | 35 | 1/15/2025 |
5.0.34 | 58 | 1/15/2025 |
5.0.33 | 107 | 1/14/2025 |
5.0.32 | 9 | 1/14/2025 |
5.0.31 | 8 | 1/14/2025 |
5.0.30 | 9 | 1/14/2025 |
5.0.29 | 9 | 1/14/2025 |
5.0.28 | 37 | 1/14/2025 |
5.0.27 | 43 | 1/13/2025 |
5.0.26 | 38 | 1/13/2025 |
5.0.25 | 132 | 1/13/2025 |
5.0.23 | 42 | 1/10/2025 |
5.0.22 | 40 | 1/10/2025 |
5.0.21 | 42 | 1/10/2025 |
5.0.19 | 34 | 1/9/2025 |
5.0.18 | 28 | 1/9/2025 |
5.0.17 | 123 | 1/9/2025 |
5.0.16 | 332 | 1/3/2025 |
5.0.15 | 83 | 1/2/2025 |
5.0.14 | 88 | 1/2/2025 |
5.0.13 | 83 | 1/2/2025 |
5.0.12 | 193 | 12/23/2024 |
5.0.11 | 76 | 12/23/2024 |
5.0.10 | 80 | 12/23/2024 |
5.0.9 | 79 | 12/23/2024 |
5.0.8 | 86 | 12/23/2024 |
5.0.7 | 351 | 12/13/2024 |
5.0.6 | 83 | 12/13/2024 |
5.0.5 | 92 | 12/12/2024 |
5.0.4 | 84 | 12/12/2024 |
5.0.3 | 84 | 12/12/2024 |
5.0.2 | 82 | 12/12/2024 |
5.0.1 | 1,334 | 12/11/2024 |
1.0.33 | 84 | 12/11/2024 |
1.0.32 | 79 | 12/11/2024 |
1.0.31 | 79 | 12/11/2024 |
1.0.30 | 4,173 | 11/12/2024 |
1.0.29 | 93 | 11/12/2024 |
1.0.28 | 2,352 | 11/1/2024 |
1.0.27 | 733 | 11/1/2024 |
1.0.26 | 82 | 10/31/2024 |
1.0.25 | 77 | 10/31/2024 |
1.0.24 | 368 | 10/30/2024 |
1.0.23 | 195 | 10/30/2024 |
1.0.22 | 179 | 10/30/2024 |
1.0.20 | 321 | 10/29/2024 |
1.0.19 | 198 | 10/29/2024 |
1.0.18 | 151 | 10/28/2024 |
1.0.17 | 106 | 10/28/2024 |
1.0.16 | 92 | 10/28/2024 |
1.0.15 | 88 | 10/28/2024 |
1.0.14 | 96 | 10/28/2024 |
1.0.13 | 102 | 10/25/2024 |
1.0.12 | 118 | 10/24/2024 |
1.0.11 | 102 | 10/19/2024 |
1.0.10 | 124 | 10/18/2024 |
1.0.9 | 120 | 10/18/2024 |
1.0.8 | 128 | 10/18/2024 |
1.0.7 | 117 | 10/18/2024 |