Soenneker.Asana.OpenApiClient
11.0.103
Prefix Reserved
dotnet add package Soenneker.Asana.OpenApiClient --version 11.0.103
NuGet\Install-Package Soenneker.Asana.OpenApiClient -Version 11.0.103
<PackageReference Include="Soenneker.Asana.OpenApiClient" Version="11.0.103" />
<PackageVersion Include="Soenneker.Asana.OpenApiClient" Version="11.0.103" />
<PackageReference Include="Soenneker.Asana.OpenApiClient" />
paket add Soenneker.Asana.OpenApiClient --version 11.0.103
#r "nuget: Soenneker.Asana.OpenApiClient, 11.0.103"
#:package Soenneker.Asana.OpenApiClient@11.0.103
#addin nuget:?package=Soenneker.Asana.OpenApiClient&version=11.0.103
#tool nuget:?package=Soenneker.Asana.OpenApiClient&version=11.0.103
Soenneker.Asana.OpenApiClient
A Kiota-generated .NET client containing request builders and models for Asana's REST API.
Installation
dotnet add package Soenneker.Asana.OpenApiClient
Creating the client
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Asana.OpenApiClient;
httpClient.BaseAddress = new Uri("https://app.asana.com/api/1.0");
httpClient.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", personalAccessToken);
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient);
var client = new AsanaOpenApiClient(adapter);
For dependency-injection setup and cached client creation, use Soenneker.Asana.OpenApiClientUtil.
Usage
Request builders follow Asana's resource hierarchy. Asana accepts me wherever a user GID can identify the authenticated user:
using Soenneker.Asana.OpenApiClient.Models;
UserResponseData? currentUser = await client
.Users["me"]
.GetAsync(cancellationToken: cancellationToken);
Generated operations expose request configuration for query parameters, headers, and Kiota middleware options:
UserResponseArray? users = await client.Users.GetAsync(
request =>
{
request.QueryParameters.Workspace = workspaceGid;
request.QueryParameters.Limit = 50;
},
cancellationToken);
Important behavior
- Request and response types are in
Soenneker.Asana.OpenApiClient.Models. - Collection responses use Asana's generated envelope and pagination fields; a successful response is not generally a bare array.
- Kiota maps documented non-success responses to the generated
ErrorResponseexception type. - The generated default base URL is Asana's production API. Supply a different adapter base URL when using a proxy or test double.
- The source is generated. Configure authentication, retries, and logging in the adapter or HTTP pipeline instead of editing generated files.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.2)
- Microsoft.Kiota.Serialization.Form (>= 2.1.2)
- Microsoft.Kiota.Serialization.Json (>= 2.1.2)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.2)
- Microsoft.Kiota.Serialization.Text (>= 2.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Asana.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.Asana.OpenApiClientUtil
A thread-safe utility for obtaining Asana's OpenApiClient singleton. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.103 | 7 | 10/26/2026 |
| 11.0.102 | 50 | 10/26/2026 |
| 4.0.101 | 64 | 10/24/2026 |
| 4.0.100 | 57 | 10/23/2026 |
| 4.0.99 | 104 | 10/15/2026 |
| 4.0.98 | 123 | 10/15/2026 |
| 4.0.97 | 89 | 10/14/2026 |
| 4.0.96 | 135 | 10/14/2026 |
| 4.0.91 | 103 | 10/13/2026 |
| 4.0.90 | 86 | 10/13/2026 |
| 4.0.89 | 131 | 10/12/2026 |
| 4.0.88 | 137 | 10/11/2026 |
| 4.0.87 | 102 | 10/10/2026 |
| 4.0.86 | 150 | 10/8/2026 |
| 4.0.85 | 114 | 10/7/2026 |
| 4.0.84 | 113 | 10/3/2026 |
| 4.0.83 | 113 | 10/2/2026 |
| 4.0.82 | 114 | 9/30/2026 |
| 4.0.81 | 110 | 9/29/2026 |
| 4.0.80 | 144 | 9/28/2026 |
Enable runtime async for compatible .NET 11 projects