com.youcruit.billogram.client.http.HttpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of billogram-v2-api-java-lib Show documentation
Show all versions of billogram-v2-api-java-lib Show documentation
Library for connecting to the Billogram v2 API
package com.youcruit.billogram.client.http;
import java.io.IOException;
import java.net.URI;
import java.util.Map;
import com.google.gson.Gson;
import com.youcruit.billogram.client.BillogramCallback;
import com.youcruit.billogram.objects.request.Search;
public interface HttpClient {
String API_BASE_URL = "https://billogram.com/api/v2";
String API_SANDBOX_BASE_URL = "https://sandbox.billogram.com/api/v2";
enum Method {
PUT, POST, GET, DELETE
}
void async(URI uri, Object requestBody, Method method, BillogramCallback callback, Class responseClass);
V sync(URI uri, Object requestBody, Method method, Class responseClass) throws IOException;
URI pathToUri(String... pathSegments);
URI pathToUri(Search search, String... pathSegments);
URI pathToUri(Map queryParameters, String... pathSegments);
Gson getMapper();
}