Soenneker.Bandwidth.OpenApiClient 4.0.77

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

Soenneker.Bandwidth.OpenApiClient

A Kiota-generated .NET client containing request builders and models for Bandwidth APIs.

Installation

dotnet add package Soenneker.Bandwidth.OpenApiClient

Creating a client

The generated client accepts a Kiota IRequestAdapter. This Basic-auth example is suitable for a Bandwidth service that uses username/password credentials:

using System.Net.Http.Headers;
using System.Text;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Bandwidth.OpenApiClient;

string credential = Convert.ToBase64String(
    Encoding.UTF8.GetBytes($"{username}:{password}"));

httpClient.BaseAddress = new Uri("https://api.bandwidth.com/api/v2/");
httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Basic", credential);

var adapter = new HttpClientRequestAdapter(
    new AnonymousAuthenticationProvider(),
    httpClient: httpClient);

var client = new BandwidthOpenApiClient(adapter);

For dependency-injection setup with one configurable authentication header, use Soenneker.Bandwidth.OpenApiClientUtil.

Usage

Request builders follow each service's path hierarchy. For example, listing messages for a messaging user is exposed under Messaging.Users:

using Soenneker.Bandwidth.OpenApiClient.Models;

MessagesList? messages = await client
    .Messaging
    .Users[userId]
    .Messages
    .GetAsync(cancellationToken: cancellationToken);

Important behavior

  • This package combines many Bandwidth API specifications, including messaging, voice, number management, emergency services, authentication, and account services.
  • Those services do not all share one base URL or authentication scheme. Configure a separate adapter/client for each host and credential set you use.
  • Some endpoints require Basic authentication, some accept bearer tokens, and others require additional headers. Follow the requirements of the specific Bandwidth API rather than assuming the generated client's default applies everywhere.
  • Request and response types are in Soenneker.Bandwidth.OpenApiClient.Models.
  • Kiota surfaces mapped non-success responses through generated error models and ApiException behavior.
  • The source is generated. Configure authentication, retries, and logging in the adapter or HTTP pipeline instead of editing generated files.
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.Bandwidth.OpenApiClient:

Package Downloads
Soenneker.Bandwidth.OpenApiClientUtil

A thread-safe utility for obtaining Bandwidth's OpenApiClient singleton.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.77 64 8/31/2026
4.0.76 79 8/30/2026
4.0.75 48 8/30/2026
4.0.74 132 8/28/2026
4.0.73 148 8/25/2026
4.0.72 83 8/24/2026
4.0.71 157 8/20/2026
4.0.70 145 8/15/2026
4.0.69 91 8/15/2026
4.0.68 101 8/14/2026
4.0.67 103 8/13/2026
4.0.66 140 8/11/2026
4.0.65 107 8/10/2026
4.0.64 152 8/8/2026
4.0.63 177 8/7/2026
4.0.62 135 8/3/2026
4.0.61 119 8/1/2026
4.0.60 121 7/31/2026
4.0.59 264 7/28/2026
4.0.58 107 7/27/2026
Loading failed