Package io.gopluslabs.client.api
Class DefiControllerApi
- java.lang.Object
-
- io.gopluslabs.client.api.DefiControllerApi
-
public class DefiControllerApi extends Object
-
-
Constructor Summary
Constructors Constructor Description DefiControllerApi()DefiControllerApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()GetDefiInfoResponsegetDefiInfoUsingGET(String contractAddresses, String chainId, String authorization)Rug-pull Detection API Betacom.squareup.okhttp.CallgetDefiInfoUsingGETAsync(String contractAddresses, String chainId, String authorization, ApiCallback<GetDefiInfoResponse> callback)Rug-pull Detection API Beta (asynchronously)com.squareup.okhttp.CallgetDefiInfoUsingGETCall(String contractAddresses, String chainId, String authorization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getDefiInfoUsingGETprivate com.squareup.okhttp.CallgetDefiInfoUsingGETValidateBeforeCall(String contractAddresses, String chainId, String authorization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)ApiResponse<GetDefiInfoResponse>getDefiInfoUsingGETWithHttpInfo(String contractAddresses, String chainId, String authorization)Rug-pull Detection API BetavoidsetApiClient(ApiClient apiClient)
-
-
-
Field Detail
-
apiClient
private ApiClient apiClient
-
-
Constructor Detail
-
DefiControllerApi
public DefiControllerApi()
-
DefiControllerApi
public DefiControllerApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getDefiInfoUsingGETCall
public com.squareup.okhttp.Call getDefiInfoUsingGETCall(String contractAddresses, String chainId, String authorization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for getDefiInfoUsingGET- Parameters:
contractAddresses- Defi protocol address (required)chainId- Chain id, (eth: 1, bsc: 56) (required)authorization- Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getDefiInfoUsingGETValidateBeforeCall
private com.squareup.okhttp.Call getDefiInfoUsingGETValidateBeforeCall(String contractAddresses, String chainId, String authorization, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
- Throws:
ApiException
-
getDefiInfoUsingGET
public GetDefiInfoResponse getDefiInfoUsingGET(String contractAddresses, String chainId, String authorization) throws ApiException
Rug-pull Detection API Beta- Parameters:
contractAddresses- Defi protocol address (required)chainId- Chain id, (eth: 1, bsc: 56) (required)authorization- Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)- Returns:
- GetDefiInfoResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getDefiInfoUsingGETWithHttpInfo
public ApiResponse<GetDefiInfoResponse> getDefiInfoUsingGETWithHttpInfo(String contractAddresses, String chainId, String authorization) throws ApiException
Rug-pull Detection API Beta- Parameters:
contractAddresses- Defi protocol address (required)chainId- Chain id, (eth: 1, bsc: 56) (required)authorization- Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)- Returns:
- ApiResponse<GetDefiInfoResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getDefiInfoUsingGETAsync
public com.squareup.okhttp.Call getDefiInfoUsingGETAsync(String contractAddresses, String chainId, String authorization, ApiCallback<GetDefiInfoResponse> callback) throws ApiException
Rug-pull Detection API Beta (asynchronously)- Parameters:
contractAddresses- Defi protocol address (required)chainId- Chain id, (eth: 1, bsc: 56) (required)authorization- Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) (optional)callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-