Freenom.NET 1.0.2

Additional Details

Freenom closed new domain registrations.

dotnet add package Freenom.NET --version 1.0.2                
NuGet\Install-Package Freenom.NET -Version 1.0.2                
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="Freenom.NET" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Freenom.NET --version 1.0.2                
#r "nuget: Freenom.NET, 1.0.2"                
#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 Freenom.NET as a Cake Addin
#addin nuget:?package=Freenom.NET&version=1.0.2

// Install Freenom.NET as a Cake Tool
#tool nuget:?package=Freenom.NET&version=1.0.2                

Freenom

alternate text is missing from this package README image

An async C# library for automatically renewing Freenom domains.

Warning

This library doesn't implement domain registration and configuration web API routes, as these can be easily abused for spam.

Usage

Provides an easy interface for interacting with the Freenom web API routes. This allows you to programmatically renew your domains.

To get started, add the library into your solution with either the NuGet Package Manager or the dotnet CLI.

dotnet add package Freenom.NET

For the primary classes to become available, import the used namespace.

using Freenom;

Need more examples? Under the Example directory you can find a working demo project that implements this library.

Dependencies

  • HtmlAgilityPack (GitHub) (Website): For efficiently parsing the DOM and reading data out of it.

Code Samples

Creating a new Freenom client

FreenomClient freenom = new();

Logging in

string name = await freenom.Login("EMAIL", "PASSWORD");

Getting basic account information

AccountInfo info = await freenom.GetAccountInfo();

Getting all domains under the account that might be renewable

RenewalDomain[] renewals = await freenom.GetRenewals();

Filtering domains that are currently renewable using LINQ

RenewalDomain[] renewable = renewals.Where(x => x.Renewable).ToArray();

Renewing a domain for 12 months

long orderId = await freenom.RenewDomain(6236693445, 12);

Features

  • Built for .NET 6 and .NET 7
  • Fully async
  • Extensive XML documentation
  • Custom exceptions (FreenomException) for advanced catching
  • Automatically renew Freenom domains that are expiring soon
  • Automatic request retries
  • Example project to show the usage of the library

Available methods

  • Task<string> Login(string email, string password)
  • Task Logout()
  • Task<AccountInfo> GetAccountInfo()
  • Task<RenewalDomain[]> GetRenewals()
  • Task<long> RenewDomain(long id, int months)

References

This is a community-ran library. Not affiliated with OpenTLD BV.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.