Soenneker.Shippo.HttpClients 4.0.152

Prefix Reserved
dotnet add package Soenneker.Shippo.HttpClients --version 4.0.152
                    
NuGet\Install-Package Soenneker.Shippo.HttpClients -Version 4.0.152
                    
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="4.0.152" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Shippo.HttpClients" Version="4.0.152" />
                    
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 4.0.152
                    
#r "nuget: Soenneker.Shippo.HttpClients, 4.0.152"
                    
#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@4.0.152
                    
#: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=4.0.152
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Shippo.HttpClients&version=4.0.152
                    
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 net10.0 is compatible.  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. 
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
4.0.152 113 10/15/2026
4.0.151 81 10/15/2026
4.0.149 109 10/14/2026
4.0.147 93 10/14/2026
4.0.146 83 10/14/2026
4.0.145 98 10/14/2026
4.0.138 112 10/13/2026
4.0.134 127 10/12/2026
4.0.133 92 10/11/2026
4.0.132 87 10/11/2026
4.0.131 84 10/11/2026
4.0.130 136 10/9/2026
4.0.129 126 10/1/2026
4.0.128 126 9/29/2026
4.0.127 107 9/29/2026
4.0.126 117 9/26/2026
4.0.125 110 9/25/2026
4.0.124 112 9/25/2026
4.0.123 108 9/24/2026
4.0.122 128 9/17/2026
Loading failed

Updated NuGet packages