VeeFriends.ShopifySync
5.0.73
dotnet add package VeeFriends.ShopifySync --version 5.0.73
NuGet\Install-Package VeeFriends.ShopifySync -Version 5.0.73
<PackageReference Include="VeeFriends.ShopifySync" Version="5.0.73" />
<PackageVersion Include="VeeFriends.ShopifySync" Version="5.0.73" />
<PackageReference Include="VeeFriends.ShopifySync" />
paket add VeeFriends.ShopifySync --version 5.0.73
#r "nuget: VeeFriends.ShopifySync, 5.0.73"
#:package VeeFriends.ShopifySync@5.0.73
#addin nuget:?package=VeeFriends.ShopifySync&version=5.0.73
#tool nuget:?package=VeeFriends.ShopifySync&version=5.0.73
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
ProductModelandOrderModelclasses. - Add an extension method to
ShopifySyncCollectionfor 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. 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. |
-
net9.0
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.3)
- Microsoft.Extensions.Caching.Hybrid (>= 9.3.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.3)
- Microsoft.Extensions.Http (>= 9.0.3)
- Microsoft.Extensions.Options (>= 9.0.3)
- Microsoft.KernelMemory.AI.OpenAI (>= 0.97.250211.1)
- Microsoft.KernelMemory.Core (>= 0.97.250211.1)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on VeeFriends.ShopifySync:
| Package | Downloads |
|---|---|
|
VeeFriends.ShopifySync.WhatNot
Data as it pertains to VeeFriends. |
|
|
VeeFriends.ShopifySync.TikTok
Data as it pertains to VeeFriends. |
|
|
VeeFriends.ShopifySync.FanaticsLive
Data as it pertains to VeeFriends. |
|
|
VeeFriends.ShopifySync.EBay
Data as it pertains to VeeFriends. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.73 | 40,357 | 5/19/2025 |
| 5.0.72 | 259 | 5/19/2025 |
| 5.0.71 | 3,383 | 3/18/2025 |
| 5.0.70 | 4,934 | 2/6/2025 |
| 5.0.69 | 236 | 2/6/2025 |
| 5.0.68 | 279 | 2/5/2025 |
| 5.0.66 | 194 | 2/5/2025 |
| 5.0.65 | 573 | 1/30/2025 |
| 5.0.64 | 1,352 | 1/18/2025 |
| 5.0.63 | 148 | 1/17/2025 |
| 5.0.62 | 195 | 1/17/2025 |
| 5.0.61 | 143 | 1/17/2025 |
| 5.0.60 | 150 | 1/17/2025 |
| 5.0.59 | 151 | 1/17/2025 |
| 5.0.58 | 179 | 1/17/2025 |
| 5.0.57 | 145 | 1/17/2025 |
| 5.0.56 | 187 | 1/17/2025 |
| 5.0.55 | 158 | 1/17/2025 |
| 5.0.54 | 172 | 1/17/2025 |
| 5.0.52 | 153 | 1/17/2025 |