Soenneker.Zoho.HttpClients 11.0.192

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

Provides cached HttpClient instances configured for Zoho CRM OAuth access tokens and data-center API origins.

Installation

dotnet add package Soenneker.Zoho.HttpClients

Configuration

{
  "Zoho": {
    "AccessToken": "your-oauth-access-token",
    "ClientBaseUrl": "https://www.zohoapis.com/crm/v8/"
  }
}

The US CRM v8 base URL is used when ClientBaseUrl is omitted. Use the API domain returned by Zoho's token response for other data centers, such as https://www.zohoapis.eu/crm/v8/. Zoho:ApiKey remains supported as a legacy alias for Zoho:AccessToken.

The default authorization header is Authorization: Zoho-oauthtoken {token}. AuthHeaderName and AuthHeaderValueTemplate are available for nonstandard integrations.

Registration

services.AddZohoOpenApiHttpClientAsSingleton();

Scoped registration is also available:

services.AddZohoOpenApiHttpClientAsScoped();

Usage

public sealed class ZohoUserReader
{
    private readonly IZohoOpenApiHttpClient _zoho;

    public ZohoUserReader(IZohoOpenApiHttpClient zoho)
    {
        _zoho = zoho;
    }

    public async Task<string> GetUsers(CancellationToken cancellationToken)
    {
        HttpClient client = await _zoho.Get(cancellationToken);
        return await client.GetStringAsync("users?type=AllUsers", cancellationToken);
    }
}

Pass connection values explicitly when serving multiple Zoho tenants or data centers:

HttpClient tenantClient = await zohoHttpClient.Get(
    tenantAccessToken,
    "https://www.zohoapis.eu/crm/v8/",
    cancellationToken);

The provider caches a separate client per access-token/base-URL pair and removes the clients it owns when disposed. It does not obtain or refresh OAuth tokens; Zoho access tokens expire and should be refreshed by the application.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.Zoho.HttpClients:

Package Downloads
Soenneker.Zoho.OpenApiClientUtil

Provides cached Zoho CRM OpenAPI clients for access-token and data-center combinations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.192 0 10/26/2026
11.0.191 4 10/26/2026
11.0.190 31 10/26/2026
4.0.189 55 10/26/2026
4.0.188 216 10/15/2026
4.0.187 89 10/15/2026
4.0.186 118 10/14/2026
4.0.185 97 10/14/2026
4.0.182 102 10/14/2026
4.0.181 115 10/14/2026
4.0.175 102 10/13/2026
4.0.171 114 10/12/2026
4.0.170 82 10/12/2026
4.0.169 109 10/11/2026
4.0.168 101 10/11/2026
4.0.167 136 10/11/2026
4.0.166 132 10/9/2026
4.0.165 189 10/1/2026
4.0.164 132 9/29/2026
4.0.163 113 9/29/2026
Loading failed

Update dependency Soenneker.Hashing.XxHash to v11 (#332)