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.
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.
Using NuGet, Install-Package yourls
Using git, git clone https://github.com/smithrobs/csharp-yourls.git /path/to/yourls
var client = new Yourls.YourlsClient("ph.ly", "1a40d1e654");
var result = client.Expand("dzg-v");
Console.WriteLine(result.shorturl);
Tests make use of xUnit.net
To run: xunit.console.clr4.x86.exe (path to compiled Yourls.Test.dll)
- shorten
- vanity
- expand
- urlstats