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
<PackageReference Include="Soenneker.Bandwidth.OpenApiClient" Version="4.0.77" />
<PackageVersion Include="Soenneker.Bandwidth.OpenApiClient" Version="4.0.77" />
<PackageReference Include="Soenneker.Bandwidth.OpenApiClient" />
paket add Soenneker.Bandwidth.OpenApiClient --version 4.0.77
#r "nuget: Soenneker.Bandwidth.OpenApiClient, 4.0.77"
#:package Soenneker.Bandwidth.OpenApiClient@4.0.77
#addin nuget:?package=Soenneker.Bandwidth.OpenApiClient&version=4.0.77
#tool nuget:?package=Soenneker.Bandwidth.OpenApiClient&version=4.0.77
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
ApiExceptionbehavior. - The source is generated. Configure authentication, retries, and logging in the adapter or HTTP pipeline instead of editing generated files.
| Product | Versions 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. |
-
net10.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.0.0)
- Microsoft.Kiota.Serialization.Form (>= 2.0.0)
- Microsoft.Kiota.Serialization.Json (>= 2.0.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.0.0)
- Microsoft.Kiota.Serialization.Text (>= 2.0.0)
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 |