VeeFriends.ShopifySync.EBay
5.0.71
dotnet add package VeeFriends.ShopifySync.EBay --version 5.0.71
NuGet\Install-Package VeeFriends.ShopifySync.EBay -Version 5.0.71
<PackageReference Include="VeeFriends.ShopifySync.EBay" Version="5.0.71" />
<PackageVersion Include="VeeFriends.ShopifySync.EBay" Version="5.0.71" />
<PackageReference Include="VeeFriends.ShopifySync.EBay" />
paket add VeeFriends.ShopifySync.EBay --version 5.0.71
#r "nuget: VeeFriends.ShopifySync.EBay, 5.0.71"
#addin nuget:?package=VeeFriends.ShopifySync.EBay&version=5.0.71
#tool nuget:?package=VeeFriends.ShopifySync.EBay&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
- VeeFriends.ShopifySync (>= 5.0.71)
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.71 | 134 | a month ago |
5.0.70 | 85 | 2 months ago |
5.0.69 | 91 | 2 months ago |
5.0.68 | 87 | 2 months ago |
5.0.66 | 98 | 2 months ago |
5.0.65 | 100 | 3 months ago |
5.0.64 | 77 | 3 months ago |
5.0.63 | 88 | 3 months ago |
5.0.62 | 76 | 3 months ago |
5.0.61 | 81 | 3 months ago |
5.0.60 | 72 | 3 months ago |
5.0.59 | 78 | 3 months ago |
5.0.58 | 71 | 3 months ago |
5.0.57 | 79 | 3 months ago |
5.0.56 | 70 | 3 months ago |
5.0.55 | 76 | 3 months ago |
5.0.54 | 78 | 3 months ago |
5.0.52 | 71 | 3 months ago |
5.0.51 | 76 | 3 months ago |
5.0.49 | 86 | 3 months ago |
5.0.47 | 81 | 3 months ago |
5.0.46 | 80 | 3 months ago |
5.0.45 | 78 | 3 months ago |
5.0.44 | 80 | 3 months ago |
5.0.43 | 81 | 3 months ago |
5.0.42 | 80 | 3 months ago |
5.0.41 | 75 | 3 months ago |
5.0.40 | 73 | 3 months ago |
5.0.39 | 72 | 3 months ago |
5.0.38 | 83 | 3 months ago |
5.0.37 | 81 | 3 months ago |
5.0.36 | 84 | 3 months ago |
5.0.35 | 74 | 3 months ago |
5.0.34 | 77 | 3 months ago |
5.0.33 | 62 | 3 months ago |
5.0.32 | 63 | 3 months ago |
5.0.31 | 63 | 3 months ago |
5.0.30 | 64 | 3 months ago |
5.0.29 | 61 | 3 months ago |
5.0.28 | 82 | 3 months ago |
5.0.27 | 76 | 3 months ago |
5.0.26 | 71 | 3 months ago |
5.0.25 | 74 | 3 months ago |
5.0.23 | 85 | 3 months ago |
5.0.22 | 89 | 3 months ago |
5.0.21 | 81 | 3 months ago |
5.0.19 | 79 | 3 months ago |
5.0.18 | 78 | 3 months ago |
5.0.17 | 82 | 3 months ago |
5.0.16 | 110 | 3 months ago |
5.0.15 | 95 | 3 months ago |
5.0.14 | 96 | 3 months ago |
5.0.13 | 92 | 3 months ago |
5.0.12 | 97 | 4 months ago |
5.0.11 | 96 | 4 months ago |
5.0.10 | 94 | 4 months ago |
5.0.9 | 90 | 4 months ago |
5.0.8 | 95 | 4 months ago |
5.0.7 | 99 | 4 months ago |
5.0.6 | 95 | 4 months ago |
5.0.5 | 102 | 4 months ago |
5.0.4 | 98 | 4 months ago |
5.0.3 | 98 | 4 months ago |
5.0.2 | 94 | 4 months ago |
5.0.1 | 90 | 4 months ago |
1.0.33 | 94 | 4 months ago |
1.0.32 | 91 | 4 months ago |
1.0.31 | 94 | 4 months ago |
1.0.30 | 102 | 5 months ago |
1.0.29 | 91 | 5 months ago |
1.0.28 | 101 | 5 months ago |
1.0.27 | 97 | 5 months ago |
1.0.26 | 93 | 5 months ago |
1.0.25 | 94 | 5 months ago |
1.0.24 | 89 | 6 months ago |
1.0.23 | 87 | 6 months ago |
1.0.22 | 98 | 6 months ago |
1.0.20 | 102 | 6 months ago |
1.0.19 | 95 | 6 months ago |
1.0.18 | 97 | 6 months ago |
1.0.17 | 107 | 6 months ago |
1.0.16 | 94 | 6 months ago |
1.0.15 | 91 | 6 months ago |
1.0.14 | 97 | 6 months ago |
1.0.13 | 99 | 6 months ago |
1.0.12 | 93 | 6 months ago |
1.0.11 | 104 | 6 months ago |
1.0.10 | 122 | 6 months ago |
1.0.9 | 128 | 6 months ago |
1.0.8 | 125 | 6 months ago |
1.0.7 | 124 | 6 months ago |