Soenneker.Asana.OpenApiClient
4.0.67
Prefix Reserved
dotnet add package Soenneker.Asana.OpenApiClient --version 4.0.67
NuGet\Install-Package Soenneker.Asana.OpenApiClient -Version 4.0.67
<PackageReference Include="Soenneker.Asana.OpenApiClient" Version="4.0.67" />
<PackageVersion Include="Soenneker.Asana.OpenApiClient" Version="4.0.67" />
<PackageReference Include="Soenneker.Asana.OpenApiClient" />
paket add Soenneker.Asana.OpenApiClient --version 4.0.67
#r "nuget: Soenneker.Asana.OpenApiClient, 4.0.67"
#:package Soenneker.Asana.OpenApiClient@4.0.67
#addin nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.67
#tool nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.67
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.0)
- Microsoft.Kiota.Serialization.Form (>= 2.1.0)
- Microsoft.Kiota.Serialization.Json (>= 2.1.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.0)
- Microsoft.Kiota.Serialization.Text (>= 2.1.0)
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.67 | 0 | 9/4/2026 |
| 4.0.66 | 41 | 9/3/2026 |
| 4.0.65 | 65 | 9/3/2026 |
| 4.0.64 | 150 | 8/30/2026 |
| 4.0.63 | 181 | 8/29/2026 |
| 4.0.62 | 216 | 8/15/2026 |
| 4.0.61 | 99 | 8/15/2026 |
| 4.0.60 | 104 | 8/14/2026 |
| 4.0.59 | 160 | 8/10/2026 |
| 4.0.58 | 235 | 7/30/2026 |
| 4.0.57 | 226 | 7/27/2026 |
| 4.0.56 | 318 | 7/16/2026 |
| 4.0.55 | 241 | 7/10/2026 |
| 4.0.54 | 126 | 7/9/2026 |
| 4.0.53 | 131 | 7/8/2026 |
| 4.0.52 | 124 | 7/7/2026 |
| 4.0.51 | 124 | 7/4/2026 |
| 4.0.50 | 150 | 7/1/2026 |
| 4.0.49 | 141 | 6/27/2026 |
| 4.0.48 | 130 | 6/25/2026 |