VeeFriends.ShopifySync.EBay 5.0.7

dotnet add package VeeFriends.ShopifySync.EBay --version 5.0.7                
NuGet\Install-Package VeeFriends.ShopifySync.EBay -Version 5.0.7                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VeeFriends.ShopifySync.EBay" Version="5.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VeeFriends.ShopifySync.EBay --version 5.0.7                
#r "nuget: VeeFriends.ShopifySync.EBay, 5.0.7"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install VeeFriends.ShopifySync.EBay as a Cake Addin
#addin nuget:?package=VeeFriends.ShopifySync.EBay&version=5.0.7

// Install VeeFriends.ShopifySync.EBay as a Cake Tool
#tool nuget:?package=VeeFriends.ShopifySync.EBay&version=5.0.7                

VeeFriends.ShopifySync 🛍️🔁

NuGet Version

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:

  1. Create a new class that inherits from SellerHttpClient<TRequestOptions>.
  2. Implement a new SellerPlatform<TProduct, TOrder, TRequestOptions> for your platform.
  3. Create platform-specific ProductModel and OrderModel classes.
  4. Add an extension method to ShopifySyncCollection for easy configuration.
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.7 73 12/13/2024
5.0.6 71 12/13/2024
5.0.5 78 12/12/2024
5.0.4 68 12/12/2024
5.0.3 78 12/12/2024
5.0.2 72 12/12/2024
5.0.1 70 12/11/2024
1.0.33 73 12/11/2024
1.0.32 70 12/11/2024
1.0.31 73 12/11/2024
1.0.30 87 11/12/2024
1.0.29 78 11/12/2024
1.0.28 87 11/1/2024
1.0.27 82 11/1/2024
1.0.26 77 10/31/2024
1.0.25 76 10/31/2024
1.0.24 72 10/30/2024
1.0.23 72 10/30/2024
1.0.22 74 10/30/2024
1.0.20 86 10/29/2024
1.0.19 78 10/29/2024
1.0.18 82 10/28/2024
1.0.17 90 10/28/2024
1.0.16 77 10/28/2024
1.0.15 76 10/28/2024
1.0.14 81 10/28/2024
1.0.13 85 10/25/2024
1.0.12 79 10/24/2024
1.0.11 95 10/19/2024
1.0.10 112 10/18/2024
1.0.9 116 10/18/2024
1.0.8 116 10/18/2024
1.0.7 110 10/18/2024