Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 2.61 KB

README.md

File metadata and controls

40 lines (30 loc) · 2.61 KB

CloudFlare.Client

Donate Nuget Nuget Libraries.io GitHub issues License: MIT

Build Status Azure DevOps tests Coverage Quality Gate Status Maintainability Rating

Info: The library currently targets LTS .Net Core and .Net Standard platforms

Usage

    using var client = new CloudFlareClient("address@example.com", "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

Implemented functionality

Check the implemented functionality wiki page.