Freenom.NET
1.0.2
Freenom closed new domain registrations.
dotnet add package Freenom.NET --version 1.0.2
NuGet\Install-Package Freenom.NET -Version 1.0.2
<PackageReference Include="Freenom.NET" Version="1.0.2" />
paket add Freenom.NET --version 1.0.2
#r "nuget: Freenom.NET, 1.0.2"
// 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
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
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 | Versions 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. |
-
net6.0
- HtmlAgilityPack (>= 1.11.46)
-
net7.0
- HtmlAgilityPack (>= 1.11.46)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.