All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.youcruit.billogram.client.http.HttpClient Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy