Skip to content

AlphaNecron/Kutt.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

59 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Logo

Kutt.NET

An API wrapper for Kutt.it, written in C#.

GitHub NuGet Latest Workflow status MIT

## Author

Usage/Examples

// Initializes a Kutt instance with default server
KuttApi kutt = new KuttApi("your_api_key");

// Initializes a Kutt instance with your own server
KuttApi kutt = new KuttApi("your_api_key", "https://example.com");

// Creates a shortened URL
Link link = await CreateLinkAsync("https://github.com");
Console.WriteLine($"Shortened URL: {link.ShortUrl}");

// With fluent interface
Link link = await new LinkCreationRequest("your_api_key", "github.com")
                      .WithExpiration("2m") // 2 minutes
                      .WithCustomSlug("gh") // https://kutt.it/gh
                      .WithPassword("github")
                      .SubmitAsync(); // Or you can use SubmitAsync("example.com") to submit with your own server.

Building

To build this project run

  nuget restore
  MSBuild.exe -property:Configuration=Release Kutt.NET.csproj

Features

  • Lightweight
  • Create or delete your domains
  • Create, delete or update your URLs
  • Get user info using API key
  • Usable in both .NET Core and .NET Framework

Used By

This project is used by the following applications: