Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 921 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 921 Bytes

sdk-dotnet

MIT licensed

This is the base client for interacting with ANS APIs from .NET applications targetting .NET Standard 2.0.

We strongly recommend against using this client directly, and instead using ANS .NET SDKs available on Github here

Basic usage

Whilst it's recommended to use the available SDKs as mentioned above, direct usage of the client is possible. You should refer to the Getting Started section of the API documentation before proceeding below

First, we'll instantiate an instance of ANSClient:

using ANS.API.Client;

ANSClient client = new ANSClient(new ClientConnection("yourapikeyhere"));

And away we go:

var zone = await client.GetAsync<dynamic>("/safedns/v1/zones/ans.co.uk");