ArticPolar.Dev.BitlyAPI
1.0.0
dotnet add package ArticPolar.Dev.BitlyAPI --version 1.0.0
NuGet\Install-Package ArticPolar.Dev.BitlyAPI -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ArticPolar.Dev.BitlyAPI" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ArticPolar.Dev.BitlyAPI --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ArticPolar.Dev.BitlyAPI, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ArticPolar.Dev.BitlyAPI as a Cake Addin #addin nuget:?package=ArticPolar.Dev.BitlyAPI&version=1.0.0 // Install ArticPolar.Dev.BitlyAPI as a Cake Tool #tool nuget:?package=ArticPolar.Dev.BitlyAPI&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ArticPolar.Dev.BitlyAPI
A C# implementation of the Bit.ly API
Example of Use
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ArticPolar.Dev.BitlyShortener;
using System.Net;
using System.Net.Http;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
string _accessToken = "6a8b4f18efc657800a0c82fff111a29da93a010f";
string longUrl = args[0];
BitlyShortener bitlyShortener = new BitlyShortener(_accessToken);
Task<string> shortUrlTask = bitlyShortener.ShortenUrl(longUrl);
shortUrlTask.Wait();
string shortUrl = shortUrlTask.Result;
Console.WriteLine("Short URL: " + shortUrl);
Console.ReadLine();
}
}
}
Command: TestConsole.exe https://github.com/JoseLucas1303/ArticPolar.Dev.BitlyAPI
Out: Short URL: bit.ly/(identification)
Example:
Command: TestConsole.exe https://www.youtube.com
Out: Short URL: bit.ly/46aLj3u
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 206 | 6/20/2023 |
First Version