Code · 24 lines · 619 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Text;
using Vimexx_API;

var VimexxClientId = "123";
var VimexxClientKey = "85780975tklkjkl76Z7AYB3ajajJJK";
var VimexxUsername = "info@example.com";
var VimexxPassword = "AP@ss5w0rd";

var cts = new CancellationTokenSource();

var sb = new StringBuilder();

var api = new VimexxApi(sb);

await api.LoginAsync(VimexxClientId, VimexxClientKey, VimexxUsername, VimexxPassword, false, cts.Token);

var result = await api.GetDNSAsync("hw.nl", cts.Token);
if (result?.Data?.DNSRecords != null)
{
	_ = await api.SaveDNSAsync("hw.nl", result.Data.DNSRecords, cts.Token);
}

Console.WriteLine(sb.ToString());