VeeFriends.ShopifySync.WhatNot
5.0.54
See the version list below for details.
dotnet add package VeeFriends.ShopifySync.WhatNot --version 5.0.54
NuGet\Install-Package VeeFriends.ShopifySync.WhatNot -Version 5.0.54
<PackageReference Include="VeeFriends.ShopifySync.WhatNot" Version="5.0.54" />
paket add VeeFriends.ShopifySync.WhatNot --version 5.0.54
#r "nuget: VeeFriends.ShopifySync.WhatNot, 5.0.54"
// Install VeeFriends.ShopifySync.WhatNot as a Cake Addin #addin nuget:?package=VeeFriends.ShopifySync.WhatNot&version=5.0.54 // Install VeeFriends.ShopifySync.WhatNot as a Cake Tool #tool nuget:?package=VeeFriends.ShopifySync.WhatNot&version=5.0.54
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.54)
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.70 | 761 | 19 days ago |
5.0.69 | 46 | 19 days ago |
5.0.68 | 166 | 20 days ago |
5.0.66 | 100 | 20 days ago |
5.0.65 | 468 | a month ago |
5.0.64 | 967 | a month ago |
5.0.63 | 62 | a month ago |
5.0.62 | 110 | a month ago |
5.0.61 | 63 | a month ago |
5.0.60 | 59 | a month ago |
5.0.59 | 62 | a month ago |
5.0.58 | 83 | a month ago |
5.0.57 | 61 | a month ago |
5.0.56 | 92 | a month ago |
5.0.55 | 89 | a month ago |
5.0.54 | 102 | a month ago |
5.0.52 | 62 | a month ago |
5.0.51 | 97 | a month ago |
5.0.49 | 129 | a month ago |
5.0.47 | 70 | a month ago |
5.0.46 | 122 | a month ago |
5.0.45 | 95 | a month ago |
5.0.44 | 119 | a month ago |
5.0.43 | 99 | a month ago |
5.0.42 | 70 | a month ago |
5.0.41 | 70 | a month ago |
5.0.40 | 94 | a month ago |
5.0.39 | 118 | a month ago |
5.0.38 | 113 | a month ago |
5.0.37 | 121 | a month ago |
5.0.36 | 147 | a month ago |
5.0.35 | 67 | a month ago |
5.0.34 | 89 | a month ago |
5.0.33 | 148 | a month ago |
5.0.32 | 34 | a month ago |
5.0.31 | 21 | a month ago |
5.0.30 | 24 | a month ago |
5.0.29 | 22 | a month ago |
5.0.28 | 40 | a month ago |
5.0.27 | 45 | a month ago |
5.0.26 | 42 | a month ago |
5.0.25 | 134 | a month ago |
5.0.23 | 50 | a month ago |
5.0.22 | 48 | a month ago |
5.0.21 | 52 | a month ago |
5.0.19 | 43 | 2 months ago |
5.0.18 | 38 | 2 months ago |
5.0.17 | 133 | 2 months ago |
5.0.16 | 334 | 2 months ago |
5.0.15 | 87 | 2 months ago |
5.0.14 | 92 | 2 months ago |
5.0.13 | 85 | 2 months ago |
5.0.12 | 195 | 2 months ago |
5.0.11 | 78 | 2 months ago |
5.0.10 | 82 | 2 months ago |
5.0.9 | 81 | 2 months ago |
5.0.8 | 90 | 2 months ago |
5.0.7 | 355 | 2 months ago |
5.0.6 | 85 | 2 months ago |
5.0.5 | 94 | 2 months ago |
5.0.4 | 87 | 2 months ago |
5.0.3 | 87 | 2 months ago |
5.0.2 | 87 | 2 months ago |
5.0.1 | 1,336 | 2 months ago |
1.0.33 | 88 | 2 months ago |
1.0.32 | 81 | 2 months ago |
1.0.31 | 83 | 2 months ago |
1.0.30 | 4,175 | 3 months ago |
1.0.29 | 95 | 3 months ago |
1.0.28 | 2,354 | 4 months ago |
1.0.27 | 735 | 4 months ago |
1.0.26 | 85 | 4 months ago |
1.0.25 | 81 | 4 months ago |
1.0.24 | 372 | 4 months ago |
1.0.23 | 197 | 4 months ago |
1.0.22 | 183 | 4 months ago |
1.0.20 | 325 | 4 months ago |
1.0.19 | 202 | 4 months ago |
1.0.18 | 153 | 4 months ago |
1.0.17 | 108 | 4 months ago |
1.0.16 | 96 | 4 months ago |
1.0.15 | 94 | 4 months ago |
1.0.14 | 98 | 4 months ago |
1.0.13 | 106 | 4 months ago |
1.0.12 | 120 | 4 months ago |
1.0.11 | 104 | 4 months ago |
1.0.10 | 126 | 4 months ago |
1.0.9 | 122 | 4 months ago |
1.0.8 | 130 | 4 months ago |
1.0.7 | 119 | 4 months ago |