public class CdpApi extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ApiClient |
getApiClient() |
ResponseSts |
getUserToken(String account,
Integer durationSeconds)
获取用户临时Token(STS)
|
com.squareup.okhttp.Call |
getUserTokenAsync(String account,
Integer durationSeconds,
ApiCallback<ResponseSts> callback)
获取用户临时Token(STS) (asynchronously)
|
com.squareup.okhttp.Call |
getUserTokenCall(String account,
Integer durationSeconds,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getUserToken
|
ApiResponse<ResponseSts> |
getUserTokenWithHttpInfo(String account,
Integer durationSeconds)
获取用户临时Token(STS)
|
void |
setApiClient(ApiClient apiClient) |
public CdpApi()
public CdpApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getUserTokenCall(String account, Integer durationSeconds, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
account - (required)durationSeconds - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ResponseSts getUserToken(String account, Integer durationSeconds) throws ApiException
account - (required)durationSeconds - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ResponseSts> getUserTokenWithHttpInfo(String account, Integer durationSeconds) throws ApiException
account - (required)durationSeconds - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getUserTokenAsync(String account, Integer durationSeconds, ApiCallback<ResponseSts> callback) throws ApiException
account - (required)durationSeconds - (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.