public class CodacyClient extends Object
| Constructor and Description |
|---|
CodacyClient(String apiToken) |
CodacyClient(String apiToken,
String scheme,
String url,
int port) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
genericRequest(String requestType,
String endpoint,
Class<T> responseType,
HashMap<String,String> parameters) |
<T> T |
getRequest(String endpoint,
Class<T> responseType) |
<T> T |
getRequest(String endpoint,
Class<T> responseType,
HashMap<String,String> parameters) |
<T> T |
postRequest(String endpoint,
Class<T> responseType) |
<T> T |
postRequest(String endpoint,
Class<T> responseType,
HashMap<String,String> parameters) |
public CodacyClient(String apiToken)
public <T> T getRequest(String endpoint, Class<T> responseType) throws CodacyGenericException
CodacyGenericExceptionpublic <T> T getRequest(String endpoint, Class<T> responseType, HashMap<String,String> parameters) throws CodacyGenericException
CodacyGenericExceptionpublic <T> T postRequest(String endpoint, Class<T> responseType) throws CodacyGenericException
CodacyGenericExceptionpublic <T> T postRequest(String endpoint, Class<T> responseType, HashMap<String,String> parameters) throws CodacyGenericException
CodacyGenericExceptionpublic <T> T genericRequest(String requestType, String endpoint, Class<T> responseType, HashMap<String,String> parameters) throws CodacyGenericException
CodacyGenericExceptionCopyright © 2015. All rights reserved.