Class MeApi
- java.lang.Object
-
- com.configcat.publicapi.java.client.api.MeApi
-
public class MeApi extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()MeModelgetMe()Get authenticated user detailsokhttp3.CallgetMeAsync(ApiCallback<MeModel> _callback)Get authenticated user details (asynchronously)okhttp3.CallgetMeCall(ApiCallback _callback)Build call for getMeApiResponse<MeModel>getMeWithHttpInfo()Get authenticated user detailsvoidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
MeApi
public MeApi()
-
MeApi
public MeApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public java.lang.String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(java.lang.String customBaseUrl)
-
getMeCall
public okhttp3.Call getMeCall(ApiCallback _callback) throws ApiException
Build call for getMe- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getMe
public MeModel getMe() throws ApiException
Get authenticated user details- Returns:
- MeModel
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getMeWithHttpInfo
public ApiResponse<MeModel> getMeWithHttpInfo() throws ApiException
Get authenticated user details- Returns:
- ApiResponse<MeModel>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
getMeAsync
public okhttp3.Call getMeAsync(ApiCallback<MeModel> _callback) throws ApiException
Get authenticated user details (asynchronously)- Parameters:
_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- Http Response Details
Status Code Description Response Headers 200 - 429 Too many requests. In case of the request rate exceeds the rate limits. -
-
-