Skip to content

Commit

Permalink
version bump to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwm authored Oct 24, 2024
1 parent 5f163f9 commit cca9b05
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ GodaddyWrapper.NET is a .NET Wrapper for calling GoDaddy REST API.

## Usage

.NET Framework
### .NET Framework

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

try
{
Expand All @@ -32,12 +38,15 @@ catch (GodaddyException ex)
}
```

.NET Core/.NET 5+
### .NET Core/.NET 5+

Program.cs / Startup.cs

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

Service Class (or controller)
Expand Down Expand Up @@ -68,7 +77,7 @@ catch (GodaddyException ex)
- Various dependency updates
- Eliminated new `HttpClient` instantiation for every API call

**⚠️Breaking Changes**
#### ⚠️Breaking Changes

- Renamed `Client` to `GoDaddyClient`
- Constructor now takes `GoDaddyClientOptions` object (.NET Framework 4.6.2+ only)
Expand Down
2 changes: 1 addition & 1 deletion src/GodaddyWrapper/GodaddyWrapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Copyright>Copyright 2015 - 2017 Vip30, 2018 - 2024 ahwm23</Copyright>
<AssemblyTitle>GodaddyWrapper.Net</AssemblyTitle>
<Authors>vip30, ahwm23</Authors>
<Version>3.0.0-beta1</Version>
<Version>3.0.0</Version>
<AssemblyVersion>3.0.0</AssemblyVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
Expand Down

0 comments on commit cca9b05

Please sign in to comment.