GodaddyWrapper 3.1.0
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GodaddyWrapper.Net
A Brief Intro
GodaddyWrapper.NET is a .NET Wrapper for calling GoDaddy REST API.
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
toGoDaddyClient
- 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 | Versions 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.
-
.NETFramework 4.6.2
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Net.Http (>= 4.3.4)
- System.Net.Http.Json (>= 8.0.1)
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Net.Http (>= 4.3.4)
- System.Net.Http.Json (>= 8.0.1)
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 | 167 | 12/1/2024 | |
3.0.0 | 249 | 10/24/2024 | |
3.0.0-beta1 | 89 | 10/22/2024 | |
2.0.0 | 1,350 | 9/18/2023 | |
1.3.3 | 3,056 | 10/25/2022 | |
1.3.2 | 892 | 9/21/2022 | |
1.3.1 | 923 | 7/5/2022 | |
1.3.0 | 844 | 6/29/2022 | |
1.2.4 | 1,986 | 12/31/2021 | |
1.2.3 | 1,432 | 8/24/2021 | |
1.2.2 | 764 | 8/24/2021 | |
1.2.1 | 1,894 | 12/11/2020 | |
1.2.0 | 918 | 12/10/2020 | |
1.1.4-beta | 1,204 | 11/13/2020 |
.NET version updates; rearchitected to allow single use HttpClient and dependency injection