Info: The library currently targets the .Net Standard platforms
using var client = new CloudFlareClient("[email protected]", "globalApiKeyFromCF");
var zones = await client.Zones.GetAsync(cancellationToken: ct);
foreach (var zone in zones.Result)
{
var dnsRecords = await client.Zones.DnsRecords.GetAsync(zone.Id, cancellationToken: ct);
foreach (var dnsRecord in dnsRecords.Result)
{
Console.WriteLine(dnsRecord.Name);
}
Console.WriteLine(zone.Name);
}
For real example check out this dns updater project: CloudFlare DNS Updater Service
Check the implemented functionality wiki page.