VeeFriends.ShopifySync
5.0.71
dotnet add package VeeFriends.ShopifySync --version 5.0.71
NuGet\Install-Package VeeFriends.ShopifySync -Version 5.0.71
<PackageReference Include="VeeFriends.ShopifySync" Version="5.0.71" />
paket add VeeFriends.ShopifySync --version 5.0.71
#r "nuget: VeeFriends.ShopifySync, 5.0.71"
// Install VeeFriends.ShopifySync as a Cake Addin #addin nuget:?package=VeeFriends.ShopifySync&version=5.0.71 // Install VeeFriends.ShopifySync as a Cake Tool #tool nuget:?package=VeeFriends.ShopifySync&version=5.0.71
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
- 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.EBay
Data as it pertains to VeeFriends. |
|
VeeFriends.ShopifySync.FanaticsLive
Data as it pertains to VeeFriends. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.0.71 | 83 | 3 days ago |
5.0.70 | 2,682 | 2 months ago |
5.0.69 | 132 | 2 months ago |
5.0.68 | 189 | 2 months ago |
5.0.66 | 101 | 2 months ago |
5.0.65 | 475 | 2 months ago |
5.0.64 | 1,259 | 2 months ago |
5.0.63 | 58 | 2 months ago |
5.0.62 | 103 | 2 months ago |
5.0.61 | 53 | 2 months ago |
5.0.60 | 54 | 2 months ago |
5.0.59 | 55 | 2 months ago |
5.0.58 | 81 | 2 months ago |
5.0.57 | 56 | 2 months ago |
5.0.56 | 92 | 2 months ago |
5.0.55 | 80 | 2 months ago |
5.0.54 | 87 | 2 months ago |
5.0.52 | 56 | 2 months ago |
5.0.51 | 113 | 2 months ago |
5.0.49 | 144 | 2 months ago |
5.0.47 | 91 | 2 months ago |
5.0.46 | 145 | 2 months ago |
5.0.45 | 118 | 2 months ago |
5.0.44 | 141 | 2 months ago |
5.0.43 | 116 | 2 months ago |
5.0.42 | 97 | 2 months ago |
5.0.41 | 92 | 2 months ago |
5.0.40 | 114 | 2 months ago |
5.0.39 | 134 | 2 months ago |
5.0.38 | 136 | 2 months ago |
5.0.37 | 144 | 2 months ago |
5.0.36 | 162 | 2 months ago |
5.0.35 | 90 | 2 months ago |
5.0.34 | 111 | 2 months ago |
5.0.33 | 201 | 2 months ago |
5.0.32 | 85 | 2 months ago |
5.0.31 | 82 | 2 months ago |
5.0.30 | 82 | 2 months ago |
5.0.29 | 80 | 2 months ago |
5.0.28 | 98 | 2 months ago |
5.0.27 | 100 | 2 months ago |
5.0.26 | 93 | 2 months ago |
5.0.25 | 214 | 2 months ago |
5.0.23 | 98 | 2 months ago |
5.0.22 | 105 | 2 months ago |
5.0.21 | 95 | 2 months ago |
5.0.19 | 93 | 2 months ago |
5.0.18 | 98 | 2 months ago |
5.0.17 | 198 | 2 months ago |
5.0.16 | 502 | 3 months ago |
5.0.15 | 106 | 3 months ago |
5.0.14 | 106 | 3 months ago |
5.0.13 | 105 | 3 months ago |
5.0.12 | 232 | 3 months ago |
5.0.11 | 118 | 3 months ago |
5.0.10 | 102 | 3 months ago |
5.0.9 | 101 | 3 months ago |
5.0.8 | 140 | 3 months ago |
5.0.7 | 368 | 3 months ago |
5.0.6 | 101 | 3 months ago |
5.0.5 | 105 | 3 months ago |
5.0.4 | 99 | 3 months ago |
5.0.3 | 97 | 3 months ago |
5.0.2 | 93 | 3 months ago |
5.0.1 | 1,337 | 3 months ago |
1.0.33 | 98 | 3 months ago |
1.0.32 | 96 | 3 months ago |
1.0.31 | 96 | 3 months ago |
1.0.30 | 4,198 | 4 months ago |
1.0.29 | 112 | 4 months ago |
1.0.28 | 2,375 | 5 months ago |
1.0.27 | 755 | 5 months ago |
1.0.26 | 110 | 5 months ago |
1.0.25 | 107 | 5 months ago |
1.0.24 | 388 | 5 months ago |
1.0.23 | 216 | 5 months ago |
1.0.22 | 201 | 5 months ago |
1.0.20 | 367 | 5 months ago |
1.0.19 | 225 | 5 months ago |
1.0.18 | 160 | 5 months ago |
1.0.17 | 124 | 5 months ago |
1.0.16 | 116 | 5 months ago |
1.0.15 | 118 | 5 months ago |
1.0.14 | 111 | 5 months ago |
1.0.13 | 115 | 5 months ago |
1.0.12 | 137 | 5 months ago |
1.0.11 | 124 | 5 months ago |
1.0.10 | 138 | 5 months ago |
1.0.9 | 138 | 5 months ago |
1.0.8 | 140 | 5 months ago |
1.0.7 | 156 | 5 months ago |