To use the Auvik nuget package:
- Open your project in Visual Studio
- Right-click on the project and click "Manage Nuget packages"
- Find the package "Auvik.Api" - install the latest version
- Create an API key in your User Profile in Auvik
- Note your URL domain, username and API key.
using Auvik.Api;
namespace My.Project;
public static class Program
{
public static async Task Main()
{
var auvikClient = new AuvikClient(
new AuvikClientOptions
{
// Ensure that the "us3" part of the URI
// matches your browser navigation bar
Uri = new Uri("https://auvikapi.us3.my.auvik.com"),
Username = "you@yourdomain.com",
ApiKey = "YOUR API KEY GOES HERE"
}
);
await auvikClient
.Credentials
.VerifyCredentials();
}
}The Auvik API documentation can be found here: