DNSimple 0.8.0-alpha-27042020

This is a prerelease version of DNSimple.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DNSimple --version 0.8.0-alpha-27042020                
NuGet\Install-Package DNSimple -Version 0.8.0-alpha-27042020                
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="DNSimple" Version="0.8.0-alpha-27042020" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DNSimple --version 0.8.0-alpha-27042020                
#r "nuget: DNSimple, 0.8.0-alpha-27042020"                
#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 DNSimple as a Cake Addin
#addin nuget:?package=DNSimple&version=0.8.0-alpha-27042020&prerelease

// Install DNSimple as a Cake Tool
#tool nuget:?package=DNSimple&version=0.8.0-alpha-27042020&prerelease                

DNSimple C# Client

A C# client for the DNSimple API v2.

IMPORTANT This API is currently under development and should not be used (until you don't see this warning)!

DNSimple provides DNS hosting and domain registration that is simple and friendly. We provide a full API and an easy-to-use web interface so you can get your domain registered and set up with a minimal amount of effort.

Installation

** COMING SOON **

Usage

This library is a C# client you can use to interact with the DNSimple API v2. Here are some examples.

using dnsimple;

var client = new Client();
var credentials = new OAuth2Credentials("...");
client.AddCredentials(credentials);

# Fetch your details
var response = client.Identity.Whoami();   // execute the call
var account = response.Data.Account;       // extract the relevant data from the response or
client.Identity.Whoami().Data.Account;     // execute the call and get the data in one line

# You can also fetch it from the whoami response
# as long as you authenticate with an Account access token
var whoami = client.Identity.Whoami();
var accountId = whoami.Account.Id;

List your domains

using dnsimple;

var client = new Client();
client.AddCredentials(new OAuth2Credentials("..."));

var accountId = client.Identity.Whoami().Data.Account.Id;
var domains = client.Domains.ListDomains(accountId).Data.Domains;

Create a domain

using dnsimple;

var client = new Client();
client.AddCredentials(new OAuth2Credentials("..."));

var accountId = client.Identity.Whoami().Data.Account.Id;
var domain = client.Domains.CreateDomain(accountId, "example.com").Data;

Get a domain

using dnsimple;

var client = new Client();
client.AddCredentials(new OAuth2Credentials("..."));

var accountId = client.Identity.Whoami().Data.Account.Id;
var domainId = client.Domains.ListDomains(accountId).Data.Domains.First().Id;
var domain = client.Domains.GetDomain(accountId, domainId).Data;

For the full library documentation visit: COMING SOON

Sandbox Environment

We highly recommend testing against our sandbox environment before using our production environment. This will allow you to avoid real purchases, live charges on your credit card, and reduce the chance of your running up against rate limits.

The client supports both the production and sandbox environment. To switch to sandbox pass the sandbox API host using the ChangeBaseUrlTo(...) method when you construct the client:

var client = new Client();
client.ChangeBaseUrlTo("https://api.sandbox.dnsimple.com");

var credentials = new OAuth2Credentials("...");
client.AddCredentials(credentials);

You will need to ensure that you are using an access token created in the sandbox environment. Production tokens will not work in the sandbox environment.

License

Copyright (c) 2010-2020 DNSimple Corporation. This is Free Software distributed under the MIT license.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 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
0.18.1 2,672 3/12/2024
0.18.0 516 1/16/2024
0.17.0 224 12/12/2023
0.16.0 155 12/7/2023
0.15.0 971 8/10/2023
0.14.0 62,635 3/3/2023
0.13.6 3,607 9/20/2022
0.13.5 27,364 2/15/2022
0.13.4 594 2/10/2022
0.13.0 1,715 11/9/2021
0.12.0 6,481 5/19/2021
0.11.0 458 4/22/2021
0.10.0 414 4/1/2021
0.9.0 1,111 6/18/2020
0.8.3-alpha 798 4/29/2020
0.8.0-alpha-27042020 509 4/27/2020
0.6.1 18,024 2/18/2016
0.6.0 2,068 11/7/2014
0.5.2 1,406 11/6/2014
0.5.1 1,446 11/6/2014
0.5.0 1,235 10/23/2014
0.4.2 1,834 7/17/2012
0.4.1 1,550 3/9/2012
0.4.0 1,411 3/9/2012
0.3.1 1,504 2/24/2012
0.2.0 1,485 2/9/2012
0.1.4 1,434 2/9/2012

Currently the following services are available on this client: Accounts,
     Identity, Domains (Collaborators, DNSSEC, Email Forwards, Pushes),
     Registration (Delegation, Auto Renewal, Whois Privacy) and Zones (Records).