GodaddyWrapper 3.1.0

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

// Install GodaddyWrapper as a Cake Tool
#tool nuget:?package=GodaddyWrapper&version=3.1.0                

GodaddyWrapper.Net

nuget build

A Brief Intro

GodaddyWrapper.NET is a .NET Wrapper for calling GoDaddy REST API.

Visit GoDaddy Rest API Docs

Usage

.NET Framework

var options = new GoDaddyClientOptions 
{
    AccessKey = "{key}",
    SecretKey = "{secret}",
    IsTesting = true /* false to use production */
};
var client = new GoDaddyClient(options);

try
{
    var response = await client.CheckDomainAvailable(new DomainAvailable
    {
        domain = "google.com"
    });
}
catch (GodaddyException ex) 
{
    //Godaddy Error Message from the Godaddy API
    Console.WriteLine(ex.ErrorResponse.Message);
    //Error Code
    Console.WriteLine(ex.StatusCode);
}

.NET Core/.NET 5+

Program.cs / Startup.cs

builder.Services.AddGoDaddy(
    configuration.GoDaddyAccessKey,
    configuration.GoDaddySecretKey,
    configuration.Sandbox);

Service Class (or controller)

public class GoDaddyDomainService(GoDaddyClient goDaddyClient)

try
{
    var response = await client.CheckDomainAvailable(new DomainAvailable
    {
        domain = "google.com"
    });
}
catch (GodaddyException ex) 
{
    //Godaddy Error Message from the Godaddy API
    Console.WriteLine(ex.ErrorResponse.Message);
    //Error Code
    Console.WriteLine(ex.StatusCode);
}

Version History

3.0.0

  • Various dependency updates
  • Eliminated new HttpClient instantiation for every API call
⚠️Breaking Changes
  • Renamed Client to GoDaddyClient
  • Constructor now takes GoDaddyClientOptions object (.NET Framework 4.6.2+ only)
  • Dependency injection pattern with builder.Services.AddGoDaddy() registration

2.0.0

  • Dropped explicit support for .NET Core 2.1
  • Updated support to .NET Standard 2.0
  • Added support for .NET 6

Remark

As I have only used the domain features (Suggested Domain, Buy Domain, CheckAvailable, etc.), I haven't tested the other parts of it so feel free to leave an issue if you find something wrong (also welcome to make a pull request). Please provide as much info as you can.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
3.1.0 94 12/1/2024
3.0.0 195 10/24/2024
3.0.0-beta1 87 10/22/2024
2.0.0 1,323 9/18/2023
1.3.3 3,020 10/25/2022
1.3.2 888 9/21/2022
1.3.1 918 7/5/2022
1.3.0 840 6/29/2022
1.2.4 1,981 12/31/2021
1.2.3 1,426 8/24/2021 1.2.3 is deprecated because it has critical bugs.
1.2.2 760 8/24/2021
1.2.1 1,888 12/11/2020
1.2.0 913 12/10/2020
1.1.4-beta 1,202 11/13/2020 1.1.4-beta is deprecated.

.NET version updates; rearchitected to allow single use HttpClient and dependency injection