public class TokenAuthApi extends Object
Constructor and Description |
---|
TokenAuthApi() |
TokenAuthApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
TokenAuthResponse |
getToken(TokenAuthInfo tokenAuthInfo)
get token
get token for authentication
|
okhttp3.Call |
getTokenAsync(TokenAuthInfo tokenAuthInfo,
ApiCallback<TokenAuthResponse> callback)
get token (asynchronously)
get token for authentication
|
okhttp3.Call |
getTokenCall(TokenAuthInfo tokenAuthInfo,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getToken
|
ApiResponse<TokenAuthResponse> |
getTokenWithHttpInfo(TokenAuthInfo tokenAuthInfo)
get token
get token for authentication
|
void |
setApiClient(ApiClient apiClient) |
public TokenAuthApi()
public TokenAuthApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call getTokenCall(TokenAuthInfo tokenAuthInfo, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
tokenAuthInfo
- (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic TokenAuthResponse getToken(TokenAuthInfo tokenAuthInfo) throws ApiException
tokenAuthInfo
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TokenAuthResponse> getTokenWithHttpInfo(TokenAuthInfo tokenAuthInfo) throws ApiException
tokenAuthInfo
- (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getTokenAsync(TokenAuthInfo tokenAuthInfo, ApiCallback<TokenAuthResponse> callback) throws ApiException
tokenAuthInfo
- (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2023. All rights reserved.