Skip to content

mj-mueller/CloudflareAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Cloudflare - API/Library for Java

Jitpack-Month JitPack Travis License

This Cloudflare API/Library interacts with Cloudflare's fast API v4 and allows you to access every single feature (even if it isn't added yet) of Cloudflare's API faster and much easier!

To add a dependency on this Cloudflare-API/Library using Maven or Gradle use the following:

Maven:

<dependency>
  <groupId>com.github.robinbraemer</groupId>
  <artifactId>cloudflareapi</artifactId>
  <version>1.3.3</version>
</dependency>
	
<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>

Gradle:

dependencies {
  compile 'com.github.robinbraemer:cloudflareapi:1.3.3'
}

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

Features

  • easy to build cloudflare requests (builder pattern)
  • able to access every corner of cloudflare's api
  • parsing results as objects (object oriented representation)
  • it is an extremely flexible api
  • asynchronicity support
  • cloudflare api token support

Getting Started

First, create an entry-point to use this api.

String CF_API_KEY = "your_cloudflare_api_key";
String CF_EMAIL = "your_cloudflare@email.com";

CloudflareAccess cfAccess = new CloudflareAccess(CF_API_KEY, CF_EMAIL);

For API tokens use:

String CF_API_TOKEN = "your_cloudflare_api_key";

CloudflareAccess cfAccess = new CloudflareAccess(CF_API_TOKEN);

Then you can create cloudflare requests.

CloudflareResponse<List<Zone>> response =
    new CloudflareRequest( Category.LIST_ZONES, cfAccess )
        .asObjectList( Zone.class );

Learn more about the Cloudflare - API/Library

Licensing

Licensed under the Apache License 2.0. See the LICENSE file for details.

About

A full Cloudflare client - API/Library in Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%