Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The most complete and extensible Cloudflare API v4 client library for Java.

License

Notifications You must be signed in to change notification settings

robinbraemer/CloudflareAPI

Repository files navigation

The Cloudflare - API/Library for Java

Jitpack-Month JitPack CI 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!

Installation

Maven Central (Recommended)

Maven:

<dependency>
 <groupId>io.github.robinbraemer</groupId>
 <artifactId>cloudflare-api</artifactId>
 <version>1.5.0</version>
</dependency>

Gradle:

implementation 'io.github.robinbraemer:cloudflare-api:1.5.0'

JitPack (Alternative)

Maven:

<dependency>
 <groupId>com.github.robinbraemer</groupId>
 <artifactId>CloudflareAPI</artifactId>
 <version>master-SNAPSHOT</version>
</dependency>
<repositories>
 <repository>
 <id>jitpack.io</id>
 <url>https://jitpack.io</url>
 </repository>
</repositories>

Gradle:

repositories {
 maven { url 'https://jitpack.io' }
}
dependencies {
 implementation 'com.github.robinbraemer:CloudflareAPI:master-SNAPSHOT'
}

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
  • token & key+email authentication support

Getting Started

First, you define the access object.

String CF_API_TOKEN = "your_cloudflare_api_token";
CloudflareAccess cfAccess = new CloudflareAccess(CF_API_TOKEN);

Or use key+email authentication:

String CF_API_KEY = "your_cloudflare_api_key";
String CF_EMAIL = "your_cloudflare@email.com";
CloudflareAccess cfAccess = new CloudflareAccess(CF_API_KEY, CF_EMAIL);

Then you can create cloudflare requests.

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

Learn more about the Cloudflare - client library

Licensing

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

About

The most complete and extensible Cloudflare API v4 client library for Java.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 9

Languages

AltStyle によって変換されたページ (->オリジナル) /