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

com.nulabinc.backlog4j.http.BacklogHttpClient Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package com.nulabinc.backlog4j.http;

import com.nulabinc.backlog4j.BacklogException;
import com.nulabinc.backlog4j.api.option.GetParams;
import com.nulabinc.backlog4j.api.option.QueryParams;
import com.nulabinc.backlog4j.http.NameValuePair;

import java.util.List;
import java.util.Map;

/**
 * @author nulab-inc
 */
public interface BacklogHttpClient {
    void setApiKey(String apiKey);
    void setBearerToken(String bearerToken);
    void setReadTimeout(int readTimeout);
    void setConnectionTimeout(int connectionTimeout);
    void setUserAgent(String userAgent);
    String getUserAgent();
    BacklogHttpResponse get(String endpoint, GetParams getParams, QueryParams queryParams) throws BacklogException;
    BacklogHttpResponse post(String endpoint, List postParams) throws BacklogException;
    BacklogHttpResponse patch(String endpoint, List patchParams) throws BacklogException;
    BacklogHttpResponse put(String endpoint, List patchParams) throws BacklogException;
    BacklogHttpResponse delete(String endpoint, List deleteParams) throws BacklogException;
    BacklogHttpResponse postMultiPart(String endpoint, Map postParams) throws BacklogException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy