Package for creating shorted URLs in TinyURL based on C#
This package is free to use for anyone
-
Add the reference librery 'TinyURL_CS.dll' to your project
-
Import the reference 'using TinyURL_CS;'
-
The function 'TinyURLShorter.URLValidator("Url2Short")' takes the long Url and returns a converted the long url that you want to short.
-
The function 'TinyURLShorter.MakeTinyUrl("longUrl")' takes the converted long url and returns the shorted url form TinyUrl.
private string shorter(string url2short)
{
String longUrl = TinyURLShorter.URLValidator(url2short);
String shortUrl = TinyURLShorter.MakeTinyUrl(longUrl);
return shortUrl;
}