Skip to content

smithrobs/csharp-yourls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csharp-yourls - Yourls API for csharp

This module provides hooks into the Yourls API for C#. It is a quick, idiomatic port of gabrielpreston's node-yourls. For more information about Yourls and what it can do, visit their API docs.

Note

YOURLS is a small set of PHP scripts that will allow you to run your own URL shortening service (a la TinyURL). You can make it private or public, you can pick custom keyword URLs. This means you will need the URL of your, or someone else's, YOURLS installation as well as an API Signature token for that install.

Installation

Using NuGet, Install-Package yourls

Using git, git clone https://github.com/smithrobs/csharp-yourls.git /path/to/yourls

Usage

var client = new Yourls.YourlsClient("ph.ly", "1a40d1e654");
var result = client.Expand("dzg-v");
Console.WriteLine(result.shorturl);

Tests

Tests make use of xUnit.net

To run: xunit.console.clr4.x86.exe (path to compiled Yourls.Test.dll)

Yourls Features

  • shorten
  • vanity
  • expand
  • urlstats

About

Yourls API for csharp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages