Soenneker.Shippo.HttpClients 11.0.162

Prefix Reserved
dotnet add package Soenneker.Shippo.HttpClients --version 11.0.162
                    
NuGet\Install-Package Soenneker.Shippo.HttpClients -Version 11.0.162
                    
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="Soenneker.Shippo.HttpClients" Version="11.0.162" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Shippo.HttpClients" Version="11.0.162" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Shippo.HttpClients" />
                    
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 Soenneker.Shippo.HttpClients --version 11.0.162
                    
#r "nuget: Soenneker.Shippo.HttpClients, 11.0.162"
                    
#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 Soenneker.Shippo.HttpClients@11.0.162
                    
#: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=Soenneker.Shippo.HttpClients&version=11.0.162
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Shippo.HttpClients&version=11.0.162
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Shippo.HttpClients

Provides a reusable HttpClient configured with Shippo's API base address and token authentication.

Installation

dotnet add package Soenneker.Shippo.HttpClients

Configuration

{
  "Shippo": {
    "ApiKey": "your-shippo-token"
  }
}

Shippo:ClientBaseUrl, Shippo:AuthHeaderName, and Shippo:AuthHeaderValueTemplate can override the defaults when needed. The value template must contain {token}.

Usage

using Soenneker.Shippo.HttpClients.Abstract;
using Soenneker.Shippo.HttpClients.Registrars;

services.AddShippoOpenApiHttpClientAsSingleton();

public sealed class ShippoRequestSender
{
    private readonly IShippoOpenApiHttpClient _shippo;

    public ShippoRequestSender(IShippoOpenApiHttpClient shippo)
    {
        _shippo = shippo;
    }

    public async Task<HttpResponseMessage> GetCarrierAccounts(CancellationToken cancellationToken)
    {
        HttpClient client = await _shippo.Get(cancellationToken);
        return await client.GetAsync("carrier_accounts", cancellationToken);
    }
}

The provider owns the cached HttpClient; disposing the provider removes and disposes that client. Scoped registration creates an independently owned client for each scope.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Soenneker.Shippo.HttpClients:

Package Downloads
Soenneker.Shippo.OpenApiClientUtil

Provides a lazily initialized, authenticated Shippo API client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.162 78 11/3/2026
11.0.161 80 11/3/2026
11.0.160 80 11/3/2026
11.0.158 99 11/3/2026
11.0.157 198 10/27/2026
11.0.156 121 10/27/2026
11.0.154 130 10/26/2026
11.0.153 98 10/26/2026
4.0.152 164 10/15/2026
4.0.151 91 10/15/2026
4.0.149 118 10/14/2026
4.0.147 105 10/14/2026
4.0.146 94 10/14/2026
4.0.145 114 10/14/2026
4.0.138 122 10/13/2026
4.0.134 138 10/12/2026
4.0.133 102 10/11/2026
4.0.132 97 10/11/2026
4.0.131 96 10/11/2026
4.0.130 145 10/9/2026
Loading failed

Updated Multiple NuGet packages