diff --git a/docs/apidocs/allclasses-index.html b/docs/apidocs/allclasses-index.html index 4dc1605..4845ac8 100644 --- a/docs/apidocs/allclasses-index.html +++ b/docs/apidocs/allclasses-index.html @@ -1,11 +1,11 @@ - + Alle Klassen und Schnittstellen (CloudflareDNS-java 0.1.0-SNAPSHOT API) - + diff --git a/docs/apidocs/allpackages-index.html b/docs/apidocs/allpackages-index.html index 477e736..79a0a82 100644 --- a/docs/apidocs/allpackages-index.html +++ b/docs/apidocs/allpackages-index.html @@ -1,11 +1,11 @@ - + Alle Packages (CloudflareDNS-java 0.1.0-SNAPSHOT API) - + diff --git a/docs/apidocs/codes/thischwa/cf/CfDnsClient.html b/docs/apidocs/codes/thischwa/cf/CfDnsClient.html index 3fd9d13..72b6cef 100644 --- a/docs/apidocs/codes/thischwa/cf/CfDnsClient.html +++ b/docs/apidocs/codes/thischwa/cf/CfDnsClient.html @@ -1,11 +1,11 @@ - + CfDnsClient (CloudflareDNS-java 0.1.0-SNAPSHOT API) - + @@ -95,7 +95,27 @@ loadScripts(document, 'script'); extends Object
CfDnsClient is a client interface to interact with Cloudflare DNS service. It allows managing DNS records and zones within the Cloudflare system, including creating, updating, retrieving, and - deleting DNS records.
+ deleting DNS records. + +

Example: +


+ // Create a new CfDnsClient instance
+ CfDnsClient client = new CfDnsClient(
+     "email@example.com",
+     "yourApiKey",
+     "yourApiToken"
+ );
+
+ // Retrieve a zone
+ ZoneEntity zone = cfDnsClient.zoneInfo("example.com");
+ System.out.println("Zone ID: " + zone.getId());
+
+ // Retrieve records of a zone
+ List records = cfDnsClient.sldListAll(zone, "sld");
+ records.forEach(record ->
+     System.out.println("Record Type: " + record.getType() + ", Value: " + record.getContent())
+ );
+