Soenneker.Asana.OpenApiClient
4.0.72
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Asana.OpenApiClient --version 4.0.72
NuGet\Install-Package Soenneker.Asana.OpenApiClient -Version 4.0.72
<PackageReference Include="Soenneker.Asana.OpenApiClient" Version="4.0.72" />
<PackageVersion Include="Soenneker.Asana.OpenApiClient" Version="4.0.72" />
<PackageReference Include="Soenneker.Asana.OpenApiClient" />
paket add Soenneker.Asana.OpenApiClient --version 4.0.72
#r "nuget: Soenneker.Asana.OpenApiClient, 4.0.72"
#:package Soenneker.Asana.OpenApiClient@4.0.72
#addin nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.72
#tool nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.72
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 | 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
- 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 |
|---|---|---|
| 4.0.79 | 54 | 9/24/2026 |
| 4.0.78 | 87 | 9/23/2026 |
| 4.0.77 | 89 | 9/22/2026 |
| 4.0.76 | 100 | 9/21/2026 |
| 4.0.75 | 103 | 9/17/2026 |
| 4.0.74 | 208 | 9/15/2026 |
| 4.0.73 | 213 | 9/12/2026 |
| 4.0.72 | 127 | 9/11/2026 |
| 4.0.71 | 125 | 9/9/2026 |
| 4.0.70 | 150 | 9/8/2026 |
| 4.0.69 | 203 | 9/4/2026 |
| 4.0.68 | 132 | 9/4/2026 |
| 4.0.67 | 168 | 9/4/2026 |
| 4.0.66 | 118 | 9/3/2026 |
| 4.0.65 | 144 | 9/3/2026 |
| 4.0.64 | 198 | 8/30/2026 |
| 4.0.63 | 228 | 8/29/2026 |
| 4.0.62 | 229 | 8/15/2026 |
| 4.0.61 | 112 | 8/15/2026 |
| 4.0.60 | 117 | 8/14/2026 |