Skip to content

** WIP ** A C# SDK for interacting with the Clickup API. Generated with Copilot Workspace 🪄

Notifications You must be signed in to change notification settings

jcleigh/ClickUpApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClickUp API for .NET

** Note: This is still a work in progress! **

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> 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 clickUpClient = new ClickUpClient(new HttpClient(), "YOUR_PERSONAL_API_TOKEN");

Creating a Task

var taskId = await _clickUpClient.CreateTaskAsync("your_list_id", "Task Name", "Task Description");

About

** WIP ** A C# SDK for interacting with the Clickup API. Generated with Copilot Workspace 🪄

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages