ClickUpApi 1.0.0
This package is still WIP and not ready for public listing.
dotnet add package ClickUpApi --version 1.0.0
NuGet\Install-Package ClickUpApi -Version 1.0.0
<PackageReference Include="ClickUpApi" Version="1.0.0" />
paket add ClickUpApi --version 1.0.0
#r "nuget: ClickUpApi, 1.0.0"
// Install ClickUpApi as a Cake Addin #addin nuget:?package=ClickUpApi&version=1.0.0 // Install ClickUpApi as a Cake Tool #tool nuget:?package=ClickUpApi&version=1.0.0
ClickUp API for .NET
This library allows you to interact with the Clickup API using .NET 8. It provides methods for authentication, creating tasks, and other API interactions.
Installation
To install the Clickup API library, you can use the NuGet package manager:
dotnet add package ClickUpApi
Usage
First, you need to register the ClickupClient with the Dependency Injection container in your Startup.cs
or Program.cs
file:
using ClickUpApi;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddClickUpClient();
}
}
Then, you can inject the IClickUpClient
interface into your classes and use it to interact with the Clickup API:
using ClickUpApi;
public class MyService
{
private readonly IClickUpClient _clickUpClient;
public MyService(IClickUpClient clickUpClient)
{
_clickUpClient = clickUpClient;
}
public async Task<string> AuthenticateAsync(string clientId, string clientSecret, string code)
{
return await _clickUpClient.AuthenticateAsync(clientId, clientSecret, code);
}
public async Task<string> CreateTaskAsync(string listId, string taskName, string taskDescription)
{
return await _clickUpClient.CreateTaskAsync(listId, taskName, taskDescription);
}
// Add other methods for API interactions as needed
}
Examples
Authentication
var accessToken = await _clickUpClient.AuthenticateAsync("your_client_id", "your_client_secret", "your_code");
Creating a Task
var taskId = await _clickUpClient.CreateTaskAsync("your_list_id", "Task Name", "Task Description");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.0 | 119 | 11/11/2024 |