Soenneker.Zoho.OpenApiClientUtil 4.0.160

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

Provides cached ZohoOpenApiClient instances for access-token and data-center combinations.

Installation

dotnet add package Soenneker.Zoho.OpenApiClientUtil

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 endpoint for other data centers. Zoho:ApiKey remains supported as a legacy alias for Zoho:AccessToken.

Registration

services.AddZohoOpenApiClientUtilAsSingleton();

Scoped registration is also available:

services.AddZohoOpenApiClientUtilAsScoped();

The scoped provider borrows the singleton HTTP transport. Disposing it releases its generated clients without removing the shared transport.

Usage

public sealed class ZohoUserReader
{
    private readonly IZohoOpenApiClientUtil _zoho;

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

    public async Task PrintUsers(CancellationToken cancellationToken)
    {
        ZohoOpenApiClient client = await _zoho.Get(cancellationToken);
        var response = await client.Users.GetAsync(cancellationToken: cancellationToken);

        foreach (var user in response?.Users ?? [])
            Console.WriteLine($"{user.FullName} ({user.Email})");
    }
}

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

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

The provider caches one generated client per access-token/base-URL pair. It does not obtain or refresh OAuth tokens.

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.160 27 9/29/2026
4.0.159 33 9/29/2026
4.0.158 58 9/26/2026
4.0.157 51 9/26/2026
4.0.156 58 9/26/2026
4.0.155 48 9/25/2026
4.0.154 50 9/25/2026
4.0.153 61 9/24/2026
4.0.152 94 9/23/2026
4.0.151 101 9/22/2026
4.0.150 136 9/18/2026
4.0.149 102 9/17/2026
4.0.148 86 9/17/2026
4.0.147 93 9/16/2026
4.0.146 83 9/16/2026
4.0.145 91 9/16/2026
4.0.144 95 9/16/2026
4.0.143 84 9/15/2026
4.0.142 95 9/14/2026
4.0.141 93 9/13/2026
Loading failed