ArticPolar.Dev.IsGdAPI 1.0.0

dotnet add package ArticPolar.Dev.IsGdAPI --version 1.0.0
NuGet\Install-Package ArticPolar.Dev.IsGdAPI -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.IsGdAPI" 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.IsGdAPI --version 1.0.0
#r "nuget: ArticPolar.Dev.IsGdAPI, 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.IsGdAPI as a Cake Addin
#addin nuget:?package=ArticPolar.Dev.IsGdAPI&version=1.0.0

// Install ArticPolar.Dev.IsGdAPI as a Cake Tool
#tool nuget:?package=ArticPolar.Dev.IsGdAPI&version=1.0.0

ArticPolar.Dev.IsGdAPI Icon

Create shortened links, with custom urls, using is.gd API

Example of Use

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ArticPolar.Dev.IsGdAPI;

namespace TestConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            RunAsync(args).GetAwaiter().GetResult();

            Console.ReadLine();
        }

        static async Task RunAsync(string[] argsArray)
        {
            // Instantiate the IsGdAPI class
            var isGdApi = new IsGdAPI();

            // Call the ShortenUrlAsync method
            string longUrl = argsArray[0];
            string customUrl = argsArray[1];
            string shortenedUrl = await isGdApi.ShortenUrlAsync(longUrl, customUrl);

            // Check if the shortened URL is not null
            if (shortenedUrl != null)
            {
                Console.WriteLine("Shortened URL: " + shortenedUrl);
            }
            else
            {
                Console.WriteLine("Failed to shorten URL.");
            }
        }
    }
}

Command: TestConsole.exe https://github.com/JoseLucas1303/ ArticGIT

Out: Short URL: is.gd/(identification)

Example: Command: TestConsole.exe https://github.com/JoseLucas1303/ ArticGIT

Out: Shortened URL: https://is.gd/ArticGIT

Product 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 149 6/20/2023

First Version.