VeeFriends.ShopifySync.WhatNot
5.0.73
dotnet add package VeeFriends.ShopifySync.WhatNot --version 5.0.73
NuGet\Install-Package VeeFriends.ShopifySync.WhatNot -Version 5.0.73
<PackageReference Include="VeeFriends.ShopifySync.WhatNot" Version="5.0.73" />
<PackageVersion Include="VeeFriends.ShopifySync.WhatNot" Version="5.0.73" />
<PackageReference Include="VeeFriends.ShopifySync.WhatNot" />
paket add VeeFriends.ShopifySync.WhatNot --version 5.0.73
#r "nuget: VeeFriends.ShopifySync.WhatNot, 5.0.73"
#:package VeeFriends.ShopifySync.WhatNot@5.0.73
#addin nuget:?package=VeeFriends.ShopifySync.WhatNot&version=5.0.73
#tool nuget:?package=VeeFriends.ShopifySync.WhatNot&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
- VeeFriends.ShopifySync (>= 5.0.73)
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.73 | 40,263 | 5/19/2025 |
| 5.0.72 | 219 | 5/19/2025 |
| 5.0.71 | 3,312 | 3/18/2025 |
| 5.0.70 | 4,931 | 2/6/2025 |
| 5.0.69 | 222 | 2/6/2025 |
| 5.0.68 | 277 | 2/5/2025 |
| 5.0.66 | 180 | 2/5/2025 |
| 5.0.65 | 569 | 1/30/2025 |
| 5.0.64 | 1,360 | 1/18/2025 |
| 5.0.63 | 154 | 1/17/2025 |
| 5.0.62 | 197 | 1/17/2025 |
| 5.0.61 | 155 | 1/17/2025 |
| 5.0.60 | 151 | 1/17/2025 |
| 5.0.59 | 142 | 1/17/2025 |
| 5.0.58 | 172 | 1/17/2025 |
| 5.0.57 | 163 | 1/17/2025 |
| 5.0.56 | 189 | 1/17/2025 |
| 5.0.55 | 186 | 1/17/2025 |
| 5.0.54 | 191 | 1/17/2025 |
| 5.0.52 | 170 | 1/17/2025 |