
com.alexbeardsley.bookeoapi.BookeoApiClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bookeo-api Show documentation
Show all versions of bookeo-api Show documentation
A Java implementation of the Bookeo API.
The newest version!
package com.alexbeardsley.bookeoapi;
import com.bookeo.api.request.ApiClient;
import java.text.SimpleDateFormat;
public class BookeoApiClient extends ApiClient {
protected final String BASE_URL = "https://api.bookeo.com/v2";
protected final String BOOKEO_SECRET_KEY_HEADER = "X-Bookeo-secretKey";
protected final String BOOKEO_API_KEY_HEADER = "X-Bookeo-apiKey";
public BookeoApiClient(String secretKey, String apiKey) {
super.setBasePath(BASE_URL);
super.addDefaultHeader(BOOKEO_SECRET_KEY_HEADER, secretKey);
super.addDefaultHeader(BOOKEO_API_KEY_HEADER, apiKey);
super.setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy