VeeFriends.ShopifySync
5.0.12
See the version list below for details.
dotnet add package VeeFriends.ShopifySync --version 5.0.12
NuGet\Install-Package VeeFriends.ShopifySync -Version 5.0.12
<PackageReference Include="VeeFriends.ShopifySync" Version="5.0.12" />
paket add VeeFriends.ShopifySync --version 5.0.12
#r "nuget: VeeFriends.ShopifySync, 5.0.12"
// Install VeeFriends.ShopifySync as a Cake Addin #addin nuget:?package=VeeFriends.ShopifySync&version=5.0.12 // Install VeeFriends.ShopifySync as a Cake Tool #tool nuget:?package=VeeFriends.ShopifySync&version=5.0.12
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
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Http (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on VeeFriends.ShopifySync:
Package | Downloads |
---|---|
VeeFriends.ShopifySync.WhatNot
Data as it pertains to VeeFriends. |
|
VeeFriends.ShopifySync.EBay
Data as it pertains to VeeFriends. |
|
VeeFriends.ShopifySync.TikTok
Data as it pertains to VeeFriends. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.0.16 | 0 | 1/3/2025 |
5.0.15 | 37 | 1/2/2025 |
5.0.14 | 36 | 1/2/2025 |
5.0.13 | 33 | 1/2/2025 |
5.0.12 | 166 | 12/23/2024 |
5.0.11 | 98 | 12/23/2024 |
5.0.10 | 89 | 12/23/2024 |
5.0.9 | 87 | 12/23/2024 |
5.0.8 | 98 | 12/23/2024 |
5.0.7 | 349 | 12/13/2024 |
5.0.6 | 81 | 12/13/2024 |
5.0.5 | 87 | 12/12/2024 |
5.0.4 | 84 | 12/12/2024 |
5.0.3 | 82 | 12/12/2024 |
5.0.2 | 78 | 12/12/2024 |
5.0.1 | 1,324 | 12/11/2024 |
1.0.33 | 86 | 12/11/2024 |
1.0.32 | 82 | 12/11/2024 |
1.0.31 | 84 | 12/11/2024 |
1.0.30 | 4,187 | 11/12/2024 |
1.0.29 | 104 | 11/12/2024 |
1.0.28 | 2,367 | 11/1/2024 |
1.0.27 | 742 | 11/1/2024 |
1.0.26 | 98 | 10/31/2024 |
1.0.25 | 97 | 10/31/2024 |
1.0.24 | 379 | 10/30/2024 |
1.0.23 | 205 | 10/30/2024 |
1.0.22 | 192 | 10/30/2024 |
1.0.20 | 353 | 10/29/2024 |
1.0.19 | 213 | 10/29/2024 |
1.0.18 | 151 | 10/28/2024 |
1.0.17 | 112 | 10/28/2024 |
1.0.16 | 104 | 10/28/2024 |
1.0.15 | 105 | 10/28/2024 |
1.0.14 | 101 | 10/28/2024 |
1.0.13 | 108 | 10/25/2024 |
1.0.12 | 130 | 10/24/2024 |
1.0.11 | 117 | 10/19/2024 |
1.0.10 | 133 | 10/18/2024 |
1.0.9 | 134 | 10/18/2024 |
1.0.8 | 133 | 10/18/2024 |
1.0.7 | 121 | 10/18/2024 |