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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Asana.OpenApiClient" Version="4.0.67" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Asana.OpenApiClient" Version="4.0.67" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Asana.OpenApiClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Asana.OpenApiClient --version 4.0.67
                    
#r "nuget: Soenneker.Asana.OpenApiClient, 4.0.67"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Asana.OpenApiClient@4.0.67
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.67
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Asana.OpenApiClient&version=4.0.67
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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 ErrorResponse exception 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed