public class LoginApi extends Object
| Constructor and Description |
|---|
LoginApi() |
LoginApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
String |
getCurrentUser()
Returns currently logged in valid UserName
|
com.squareup.okhttp.Call |
getCurrentUserAsync(ApiCallback<String> callback)
Returns currently logged in valid UserName (asynchronously)
|
ApiResponse<String> |
getCurrentUserWithHttpInfo()
Returns currently logged in valid UserName
|
void |
login(Credentials login)
Login and generate cookie for future authorization.
|
com.squareup.okhttp.Call |
loginAsync(Credentials login,
ApiCallback<Void> callback)
Login and generate cookie for future authorization.
|
ApiResponse<Void> |
loginWithHttpInfo(Credentials login)
Login and generate cookie for future authorization.
|
void |
setApiClient(ApiClient apiClient) |
public LoginApi()
public LoginApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public String getCurrentUser() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<String> getCurrentUserWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getCurrentUserAsync(ApiCallback<String> callback) throws ApiException
callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic void login(Credentials login) throws ApiException
login - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> loginWithHttpInfo(Credentials login) throws ApiException
login - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call loginAsync(Credentials login, ApiCallback<Void> callback) throws ApiException
login - (optional)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 © 2018. All rights reserved.