Amilon.B2B.API.Internal.Client 3.0.25

dotnet add package Amilon.B2B.API.Internal.Client --version 3.0.25
                    
NuGet\Install-Package Amilon.B2B.API.Internal.Client -Version 3.0.25
                    
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="Amilon.B2B.API.Internal.Client" Version="3.0.25" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Amilon.B2B.API.Internal.Client" Version="3.0.25" />
                    
Directory.Packages.props
<PackageReference Include="Amilon.B2B.API.Internal.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Amilon.B2B.API.Internal.Client --version 3.0.25
                    
#r "nuget: Amilon.B2B.API.Internal.Client, 3.0.25"
                    
#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.
#:package Amilon.B2B.API.Internal.Client@3.0.25
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Amilon.B2B.API.Internal.Client&version=3.0.25
                    
Install as a Cake Addin
#tool nuget:?package=Amilon.B2B.API.Internal.Client&version=3.0.25
                    
Install as a Cake Tool

Amilon B2B API Internal Client

This client allows you to connect and use Amilon's B2B API internal client services.

Usage


Single Tenant

You can configure the authentication parameters in the appsettings.json. Depending on your authentication type, you can configure

  • ClientId
  • ClientSecret

or/and optionally

  • UserName
  • Password
  "B2BInternal_API_Client": {
    "Environment": "STG",
    "ClientId": "your-client-id",
    "ClientSecret": "your-client-secret",
    "UserName": "your-username",
    "Password": "your-password",
    "Version": "2",
    "GrantType": "password",
    "Timeout": 60000
  }

You can configure the client in your app through Dependency Injection

  • Startup.cs
public IConfiguration Configuration { get; }

public Startup(IConfiguration configuration)
{
    Configuration = configuration;
}

public void ConfigureServices(IServiceCollection services)
{
    services.AddB2BInternalClient(Configuration);
}
  • Host Builder
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddB2BInternalClient(builder.Configuration);

Multi Tenant

You can configure the authentication parameters in the appsettings.json. Depending on your authentication type, you can configure

  • ClientId
  • ClientSecret

or/and optionally

  • UserName
  • Password

In this Multi Tenant mode, you can customize the appSettings to your own needs, it does not have to use a specific structure as the client will be initialized manually using the needed parameters in the AddB2BInternalClient method call.

"B2BInternal_API_Client": {
    "Environment": "STG",
    "Version": "2",
    "GrantType": "password",
    "Timeout": 60000
},
"MultiTenant": [
    {
        "ClientId": "your-client-id_1",
        "ClientSecret": "your-client-secret_1",
        "B2BCredentials": {
            "UserName": "your-user-name_1",
            "Password": "your-password_1"
        }
    },
    {
        "ClientId": "your-client-id_2",
        "ClientSecret": "your-client-secret_2",
        "B2BCredentials": {
            "UserName": "your-user-name_2",
            "Password": "your-password_2"
        }
    },
]   

You can configure the client in your app through Dependency Injection. MultiTenantHelper is a placeholder for a class you can make in order to get the specific credentials for a specific ClientId.

  • Startup.cs
public IConfiguration Configuration { get; }

public Startup(IConfiguration configuration)
{
    Configuration = configuration;
}

public void ConfigureServices(IServiceCollection services)
{
    var B2BInternalConfig = Configuration.GetSection("B2B_API_Client").Get<B2BInternalConfig>();

    services.AddB2BInternalClient(_ =>
    {
        var config = new B2BInternalConfig();
        var b2bCredentials = MultiTenantHelper.GetB2BCredentials();
        config.ClientId = b2bCredentials.ClientId;
        config.ClientSecret = b2bCredentials.ClientSecret;
        config.GrantType = B2BInternalConfig.GrantType;
        config.Version = B2BInternalConfig.Version;
        config.Password = b2bCredentials.Password;
        config.UserName = b2bCredentials.UserName;
        return config;
    }, B2BInternalConfig.Environment, B2BInternalConfig.Timeout);
}
  • Host Builder
var builder = Host.CreateApplicationBuilder(args);

var B2BInternalConfig = builder.Configuration.GetSection("B2B_API_Client").Get<B2BInternalConfig>();

builder.Services.AddB2BInternalClient(_ =>
{
    var config = new B2BInternalConfig();
    var b2bCredentials = MultiTenantHelper.GetB2BCredentials();
    config.ClientId = B2BInternalConfig.ClientId;
    config.ClientSecret = B2BInternalConfig.ClientSecret;
    config.GrantType = B2BInternalConfig.GrantType;
    config.Version = B2BInternalConfig.Version;
    config.Password = b2bCredentials.Password;
    config.UserName = b2bCredentials.UserName;
    return config;
}, B2BInternalConfig.Environment, B2BInternalConfig.Timeout);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
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
3.0.25 159 1/24/2025
3.0.24 133 1/2/2025
3.0.23 146 11/6/2024
3.0.21 135 10/29/2024
3.0.20 124 10/25/2024
3.0.19 132 10/23/2024
3.0.18 129 10/10/2024
3.0.17 153 9/13/2024
3.0.16 159 9/9/2024
3.0.15 147 9/3/2024
3.0.13 149 5/13/2024
3.0.12 140 5/8/2024
3.0.11 140 4/18/2024
3.0.10 123 4/18/2024
3.0.9 136 4/18/2024
3.0.8 126 4/18/2024
3.0.7 137 4/18/2024
3.0.6 132 4/18/2024
3.0.4 131 4/18/2024
3.0.3 129 4/18/2024
3.0.2 132 4/18/2024
3.0.1 147 4/18/2024
2.3.1 270 3/4/2024
2.2.11 696 11/14/2023
2.2.10 510 11/7/2023
2.2.9 537 11/2/2023
2.2.4 773 6/8/2023
2.2.3 880 6/7/2023
2.2.2 780 6/7/2023
2.2.1 800 6/6/2023
2.1.11 829 6/6/2023
2.1.10 806 6/6/2023
2.1.9 830 6/6/2023
2.1.5 826 5/9/2023
2.1.4 775 5/2/2023
2.1.2 905 3/21/2023
2.1.1 872 3/16/2023
2.0.13 1,088 11/11/2022
2.0.12 1,007 11/11/2022
2.0.11 1,128 6/24/2022
2.0.10 1,111 6/23/2022
2.0.9 1,090 6/9/2022
2.0.8 1,103 6/9/2022
2.0.7 1,108 6/9/2022
2.0.6 1,110 6/9/2022
2.0.2 1,156 6/9/2022 2.0.2 is deprecated because it has critical bugs.
2.0.1 1,148 6/9/2022 2.0.1 is deprecated because it has critical bugs.
1.8.0 1,178 6/8/2022 1.8.0 is deprecated because it has critical bugs.
1.7.1-beta 810 5/2/2022
1.6.3 1,121 4/28/2021
1.6.2 984 4/28/2021
1.6.1 1,005 4/27/2021
1.6.0 1,185 3/5/2021
1.5.1 1,092 3/5/2021
1.5.0 1,096 2/12/2021
1.0.1 133 5/15/2024