Simplify README code example by removing unnecessary line breaks and improving method chaining clarity.
This commit is contained in:
@@ -429,11 +429,7 @@ CfDnsClient client = new CfDnsClient(true, "email@example.com", "yourApiKey");
|
|||||||
```java
|
```java
|
||||||
try {
|
try {
|
||||||
List<RecordEntity> records = cfDnsClient.recordGet(zone, "www", RecordType.A);
|
List<RecordEntity> records = cfDnsClient.recordGet(zone, "www", RecordType.A);
|
||||||
System.out.
|
System.out.println("Record IP: "+records.get(0).getContent());
|
||||||
|
|
||||||
println("Record IP: "+records.get(0).
|
|
||||||
|
|
||||||
getContent());
|
|
||||||
} catch (CloudflareApiException e) {
|
} catch (CloudflareApiException e) {
|
||||||
if (e instanceof CloudflareNotFoundException) {
|
if (e instanceof CloudflareNotFoundException) {
|
||||||
log.warn("Sld not found: www");
|
log.warn("Sld not found: www");
|
||||||
@@ -448,5 +444,4 @@ getContent());
|
|||||||
|
|
||||||
# Summary
|
# Summary
|
||||||
|
|
||||||
`CfDnsClient` offers a simple interface for managing DNS entries via Cloudflare's public API, allowing seamless CRUD
|
`CfDnsClient` offers a simple interface for managing DNS entries via Cloudflare's public API, allowing seamless CRUD operations and automation-friendly workflows.
|
||||||
operations and automation-friendly workflows.
|
|
||||||
Reference in New Issue
Block a user