VeeFriends.ShopifySync
1.0.22
See the version list below for details.
dotnet add package VeeFriends.ShopifySync --version 1.0.22
NuGet\Install-Package VeeFriends.ShopifySync -Version 1.0.22
<PackageReference Include="VeeFriends.ShopifySync" Version="1.0.22" />
paket add VeeFriends.ShopifySync --version 1.0.22
#r "nuget: VeeFriends.ShopifySync, 1.0.22"
// Install VeeFriends.ShopifySync as a Cake Addin #addin nuget:?package=VeeFriends.ShopifySync&version=1.0.22 // Install VeeFriends.ShopifySync as a Cake Tool #tool nuget:?package=VeeFriends.ShopifySync&version=1.0.22
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 | 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 was computed. 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. |
-
net8.0
- Microsoft.Extensions.Caching.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
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.64 | 55 | 1/18/2025 |
5.0.63 | 30 | 1/17/2025 |
5.0.62 | 77 | 1/17/2025 |
5.0.61 | 29 | 1/17/2025 |
5.0.60 | 30 | 1/17/2025 |
5.0.59 | 30 | 1/17/2025 |
5.0.58 | 56 | 1/17/2025 |
5.0.57 | 30 | 1/17/2025 |
5.0.56 | 64 | 1/17/2025 |
5.0.55 | 58 | 1/17/2025 |
5.0.54 | 61 | 1/17/2025 |
5.0.52 | 32 | 1/17/2025 |
5.0.51 | 66 | 1/16/2025 |
5.0.49 | 98 | 1/16/2025 |
5.0.47 | 38 | 1/16/2025 |
5.0.46 | 97 | 1/16/2025 |
5.0.45 | 69 | 1/16/2025 |
5.0.44 | 88 | 1/16/2025 |
5.0.43 | 64 | 1/16/2025 |
5.0.42 | 54 | 1/15/2025 |
5.0.41 | 47 | 1/15/2025 |
5.0.40 | 73 | 1/15/2025 |
5.0.39 | 96 | 1/15/2025 |
5.0.38 | 111 | 1/15/2025 |
5.0.37 | 117 | 1/15/2025 |
5.0.36 | 138 | 1/15/2025 |
5.0.35 | 66 | 1/15/2025 |
5.0.34 | 88 | 1/15/2025 |
5.0.33 | 145 | 1/14/2025 |
5.0.32 | 45 | 1/14/2025 |
5.0.31 | 47 | 1/14/2025 |
5.0.30 | 46 | 1/14/2025 |
5.0.29 | 46 | 1/14/2025 |
5.0.28 | 74 | 1/14/2025 |
5.0.27 | 83 | 1/13/2025 |
5.0.26 | 74 | 1/13/2025 |
5.0.25 | 167 | 1/13/2025 |
5.0.23 | 72 | 1/10/2025 |
5.0.22 | 78 | 1/10/2025 |
5.0.21 | 71 | 1/10/2025 |
5.0.19 | 62 | 1/9/2025 |
5.0.18 | 59 | 1/9/2025 |
5.0.17 | 162 | 1/9/2025 |
5.0.16 | 324 | 1/3/2025 |
5.0.15 | 80 | 1/2/2025 |
5.0.14 | 79 | 1/2/2025 |
5.0.13 | 77 | 1/2/2025 |
5.0.12 | 225 | 12/23/2024 |
5.0.11 | 106 | 12/23/2024 |
5.0.10 | 96 | 12/23/2024 |
5.0.9 | 94 | 12/23/2024 |
5.0.8 | 105 | 12/23/2024 |
5.0.7 | 360 | 12/13/2024 |
5.0.6 | 93 | 12/13/2024 |
5.0.5 | 98 | 12/12/2024 |
5.0.4 | 92 | 12/12/2024 |
5.0.3 | 90 | 12/12/2024 |
5.0.2 | 85 | 12/12/2024 |
5.0.1 | 1,330 | 12/11/2024 |
1.0.33 | 91 | 12/11/2024 |
1.0.32 | 89 | 12/11/2024 |
1.0.31 | 89 | 12/11/2024 |
1.0.30 | 4,194 | 11/12/2024 |
1.0.29 | 108 | 11/12/2024 |
1.0.28 | 2,371 | 11/1/2024 |
1.0.27 | 748 | 11/1/2024 |
1.0.26 | 104 | 10/31/2024 |
1.0.25 | 101 | 10/31/2024 |
1.0.24 | 383 | 10/30/2024 |
1.0.23 | 211 | 10/30/2024 |
1.0.22 | 199 | 10/30/2024 |
1.0.20 | 358 | 10/29/2024 |
1.0.19 | 218 | 10/29/2024 |
1.0.18 | 157 | 10/28/2024 |
1.0.17 | 122 | 10/28/2024 |
1.0.16 | 112 | 10/28/2024 |
1.0.15 | 111 | 10/28/2024 |
1.0.14 | 106 | 10/28/2024 |
1.0.13 | 112 | 10/25/2024 |
1.0.12 | 134 | 10/24/2024 |
1.0.11 | 120 | 10/19/2024 |
1.0.10 | 135 | 10/18/2024 |
1.0.9 | 136 | 10/18/2024 |
1.0.8 | 136 | 10/18/2024 |
1.0.7 | 125 | 10/18/2024 |