Freenom.NET 1.0.1

Additional Details

Freenom closed new domain registrations.

There is a newer version of this package available.
See the version list below for details.
dotnet add package Freenom.NET --version 1.0.1
NuGet\Install-Package Freenom.NET -Version 1.0.1
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.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Freenom.NET --version 1.0.1
#r "nuget: Freenom.NET, 1.0.1"
#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.1

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

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 GUI API routes, as these can be easily abused for spam.

Usage

Available on NuGet as Freenom.NET, methods can be found under the class FreenomClient.

https://www.nuget.org/packages/Freenom.NET

Dependencies

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

Example

Under the Example folder you can find a demo application that implements the library.

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();

Filter for 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

  • Made with .NET 6
  • Fully async
  • Coverage of the domain renewal GUI API routes
  • Automatically renew Freenom domains that are expiring soon
  • Custom exceptions (FreenomException) for advanced catching
  • 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)

https://www.freenom.com/

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 was computed.  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.

Version Downloads Last updated
1.0.2 658 11/16/2022
1.0.1 355 10/1/2022
1.0.0 365 10/1/2022