Soenneker.PostHog.OpenApiClientUtil 4.0.139

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

Provides a configured PostHog management client and reuses it for the lifetime of the registered service.

Installation

dotnet add package Soenneker.PostHog.OpenApiClientUtil

Configuration

{
  "PostHog": {
    "ApiKey": "your-personal-api-key",
    "ClientBaseUrl": "https://us.posthog.com/"
  }
}

Use the account's regional host or self-hosted root URL. The key must be a personal API key with the scopes needed by the requested management endpoints.

Usage

using Soenneker.PostHog.OpenApiClientUtil.Abstract;
using Soenneker.PostHog.OpenApiClientUtil.Registrars;

services.AddPostHogOpenApiClientUtilAsSingleton();

IPostHogOpenApiClientUtil postHog = serviceProvider
    .GetRequiredService<IPostHogOpenApiClientUtil>();

var client = await postHog.Get(cancellationToken);
var organizations = await client.Api.Organizations.GetAsync(
    cancellationToken: cancellationToken);

Use AddPostHogOpenApiClientUtilAsScoped() when each application scope should have its own generated client wrapper. The authenticated HTTP provider remains shared and is disposed by the service container at shutdown.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.139 34 9/15/2026
4.0.138 80 9/13/2026
4.0.137 78 9/13/2026
4.0.136 78 9/13/2026
4.0.135 72 9/13/2026
4.0.134 79 9/12/2026
4.0.133 77 9/12/2026
4.0.131 92 9/11/2026
4.0.129 89 9/9/2026
4.0.128 81 9/9/2026
4.0.127 91 9/8/2026
4.0.126 85 9/8/2026
4.0.125 99 9/8/2026
4.0.124 91 9/8/2026
4.0.123 92 9/8/2026
4.0.122 96 9/7/2026
4.0.121 91 9/7/2026
4.0.120 100 9/5/2026
4.0.119 93 9/5/2026
4.0.118 91 9/4/2026
Loading failed