Package software.xdev.sessionize.client
Class BaseApi
java.lang.Object
software.xdev.sessionize.client.BaseApi
- Direct Known Subclasses:
AllApi,SessionsApi,SpeakersApi
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDirectly invoke the API for the given URL.<T> TDirectly invoke the API for the given URL.voidDirectly invoke the API for the given URL.<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType) Directly invoke the API for the given URL.abstract <T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.voidDirectly invoke the API for the given URL.voidDirectly invoke the API for the given URL.voidsetApiClient(ApiClient apiClient)
-
Field Details
-
apiClient
-
-
Constructor Details
-
BaseApi
public BaseApi() -
BaseApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
invokeAPI
Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.- Throws:
ApiException- if fails to make API call.
-
invokeAPI
public void invokeAPI(String url, String method, Map<String, String> additionalHeaders) throws ApiExceptionDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.additionalHeaders- Additional headers for the request.- Throws:
ApiException- if fails to make API call.
-
invokeAPI
Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.- Throws:
ApiException- if fails to make API call.
-
invokeAPI
public void invokeAPI(String url, String method, Object request, Map<String, String> additionalHeaders) throws ApiExceptionDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.additionalHeaders- Additional headers for the request.- Throws:
ApiException- if fails to make API call.
-
invokeAPI
public <T> T invokeAPI(String url, String method, com.fasterxml.jackson.core.type.TypeReference<T> returnType) throws ApiException Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.returnType- The return type.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType) throws ApiException Directly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-
invokeAPI
public abstract <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-