Soenneker.HubSpot.OpenApiClient
4.0.122
Prefix Reserved
dotnet add package Soenneker.HubSpot.OpenApiClient --version 4.0.122
NuGet\Install-Package Soenneker.HubSpot.OpenApiClient -Version 4.0.122
<PackageReference Include="Soenneker.HubSpot.OpenApiClient" Version="4.0.122" />
<PackageVersion Include="Soenneker.HubSpot.OpenApiClient" Version="4.0.122" />
<PackageReference Include="Soenneker.HubSpot.OpenApiClient" />
paket add Soenneker.HubSpot.OpenApiClient --version 4.0.122
#r "nuget: Soenneker.HubSpot.OpenApiClient, 4.0.122"
#:package Soenneker.HubSpot.OpenApiClient@4.0.122
#addin nuget:?package=Soenneker.HubSpot.OpenApiClient&version=4.0.122
#tool nuget:?package=Soenneker.HubSpot.OpenApiClient&version=4.0.122
Soenneker.HubSpot.OpenApiClient
Call HubSpot endpoints through a Kiota-generated client with typed request builders and models.
Install
dotnet add package Soenneker.HubSpot.OpenApiClient
Create a client
using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.HubSpot.OpenApiClient;
var httpClient = new HttpClient
{
BaseAddress = new Uri("https://api.hubapi.com/")
};
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", privateAppAccessToken);
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient);
var client = new HubSpotOpenApiClient(adapter);
The HttpClient supplies private-app authentication, so the Kiota adapter uses anonymous authentication. Reuse the transport rather than constructing one per request, and dispose it when its owning application component shuts down.
For application registration, per-token client reuse, and coordinated transport ownership, use Soenneker.HubSpot.OpenApiClientUtil instead of constructing the generated client directly.
Call an endpoint
using Soenneker.HubSpot.OpenApiClient.Models;
CollectionResponsePublicOwnerForwardPaging? owners =
await client.Crm.Owners.TwoZeroTwoSixZeroThree.GetAsync(
cancellationToken: cancellationToken);
The generated surface mirrors HubSpot's combined OpenAPI description. Names such as TwoZeroTwoSixZeroThree are generated representations of versioned path segments; follow the request-builder properties from areas such as Crm, Marketing, Cms, Files, and Conversations to the desired operation.
HTTP failures are surfaced through Kiota exceptions. Nullable results indicate that an endpoint returned no response body.
This repository contains generated code. Put reusable helpers and behavior changes in a separate package so regeneration does not overwrite them.
| 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.1.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.HubSpot.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.HubSpot.OpenApiClientUtil
Provides cached HubSpot generated clients for one or more private app access tokens |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.122 | 0 | 9/3/2026 |
| 4.0.121 | 131 | 8/31/2026 |
| 4.0.120 | 211 | 8/28/2026 |
| 4.0.119 | 168 | 8/25/2026 |
| 4.0.118 | 117 | 8/22/2026 |
| 4.0.117 | 153 | 8/21/2026 |
| 4.0.116 | 117 | 8/20/2026 |
| 4.0.115 | 129 | 8/19/2026 |
| 4.0.114 | 164 | 8/18/2026 |
| 4.0.113 | 151 | 8/16/2026 |
| 4.0.112 | 111 | 8/15/2026 |
| 4.0.111 | 100 | 8/15/2026 |
| 4.0.110 | 115 | 8/12/2026 |
| 4.0.109 | 190 | 8/7/2026 |
| 4.0.108 | 133 | 8/5/2026 |
| 4.0.107 | 150 | 8/1/2026 |
| 4.0.106 | 353 | 7/27/2026 |
| 4.0.105 | 226 | 7/22/2026 |
| 4.0.104 | 271 | 7/17/2026 |
| 4.0.103 | 207 | 7/16/2026 |
Update dependency Microsoft.Kiota.Http.HttpClientLibrary to 2.1.0 (#202)