Soenneker.Canva.OpenApiClientUtil
4.0.50
Prefix Reserved
dotnet add package Soenneker.Canva.OpenApiClientUtil --version 4.0.50
NuGet\Install-Package Soenneker.Canva.OpenApiClientUtil -Version 4.0.50
<PackageReference Include="Soenneker.Canva.OpenApiClientUtil" Version="4.0.50" />
<PackageVersion Include="Soenneker.Canva.OpenApiClientUtil" Version="4.0.50" />
<PackageReference Include="Soenneker.Canva.OpenApiClientUtil" />
paket add Soenneker.Canva.OpenApiClientUtil --version 4.0.50
#r "nuget: Soenneker.Canva.OpenApiClientUtil, 4.0.50"
#:package Soenneker.Canva.OpenApiClientUtil@4.0.50
#addin nuget:?package=Soenneker.Canva.OpenApiClientUtil&version=4.0.50
#tool nuget:?package=Soenneker.Canva.OpenApiClientUtil&version=4.0.50
Soenneker.Canva.OpenApiClientUtil
Provides a lazily created Canva Connect API client backed by the configured cached HttpClient.
Installation
dotnet add package Soenneker.Canva.OpenApiClientUtil
Configuration
{
"Canva": {
"AccessToken": "your-oauth-access-token"
}
}
The client sends the access token as Authorization: Bearer <token>. A compatible gateway can be configured with Canva:ClientBaseUrl, Canva:AuthHeaderName, and Canva:AuthHeaderValueTemplate.
Registration and usage
using Soenneker.Canva.OpenApiClient;
using Soenneker.Canva.OpenApiClient.Models;
using Soenneker.Canva.OpenApiClientUtil.Abstract;
using Soenneker.Canva.OpenApiClientUtil.Registrars;
services.AddCanvaOpenApiClientUtilAsScoped();
public sealed class CanvaService(ICanvaOpenApiClientUtil clientUtil)
{
public async Task<UsersMeResponse?> GetCurrentUser(CancellationToken cancellationToken)
{
CanvaOpenApiClient client = await clientUtil.Get(cancellationToken);
return await client.V1.Users.Me.GetAsync(cancellationToken: cancellationToken);
}
}
The scoped utility releases its own generated client holder with the consuming scope. Its registered HTTP provider is singleton and remains available until application shutdown. Singleton utility registration is also available.
| 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
- Soenneker.Canva.HttpClients (>= 4.0.41)
- Soenneker.Canva.OpenApiClient (>= 4.0.15)
- Soenneker.Kiota.GenericAuthenticationProvider (>= 4.0.44)
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.50 | 37 | 9/9/2026 |
| 4.0.49 | 31 | 9/9/2026 |
| 4.0.48 | 41 | 9/9/2026 |
| 4.0.47 | 66 | 9/8/2026 |
| 4.0.46 | 57 | 9/8/2026 |
| 4.0.45 | 75 | 9/8/2026 |
| 4.0.44 | 72 | 9/8/2026 |
| 4.0.43 | 91 | 9/7/2026 |
| 4.0.42 | 88 | 9/7/2026 |
| 4.0.41 | 86 | 9/6/2026 |
| 4.0.40 | 85 | 9/5/2026 |
| 4.0.39 | 83 | 9/4/2026 |
| 4.0.38 | 80 | 9/4/2026 |
| 4.0.37 | 82 | 9/4/2026 |
| 4.0.36 | 76 | 9/4/2026 |
| 4.0.35 | 81 | 9/4/2026 |
| 4.0.34 | 83 | 9/4/2026 |
| 4.0.33 | 87 | 9/4/2026 |
| 4.0.32 | 85 | 9/4/2026 |
| 4.0.31 | 83 | 9/4/2026 |