Soenneker.Asana.OpenApiClient
4.0.101
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Asana.OpenApiClient --version 4.0.101
NuGet\Install-Package Soenneker.Asana.OpenApiClient -Version 4.0.101
<PackageReference Include="Soenneker.Asana.OpenApiClient" Version="4.0.101" />
<PackageVersion Include="Soenneker.Asana.OpenApiClient" Version="4.0.101" />
<PackageReference Include="Soenneker.Asana.OpenApiClient" />
paket add Soenneker.Asana.OpenApiClient --version 4.0.101
#r "nuget: Soenneker.Asana.OpenApiClient, 4.0.101"
#:package Soenneker.Asana.OpenApiClient@4.0.101
#addin nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.101
#tool nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.101
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 |
|---|---|---|
| 11.0.104 | 0 | 10/27/2026 |
| 11.0.103 | 57 | 10/26/2026 |
| 11.0.102 | 67 | 10/26/2026 |
| 4.0.101 | 72 | 10/24/2026 |
| 4.0.100 | 65 | 10/23/2026 |
| 4.0.99 | 104 | 10/15/2026 |
| 4.0.98 | 123 | 10/15/2026 |
| 4.0.97 | 90 | 10/14/2026 |
| 4.0.96 | 135 | 10/14/2026 |
| 4.0.91 | 103 | 10/13/2026 |
| 4.0.90 | 89 | 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 | 151 | 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 |
Update Soenneker.Asana.OpenApiClient