public class AuthApi extends Object
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
OAuthProviderPublicDTO |
getProvider(Integer id)
Get OAuth provider details
|
com.squareup.okhttp.Call |
getProviderAsync(Integer id,
ApiCallback<OAuthProviderPublicDTO> callback)
Get OAuth provider details (asynchronously)
|
List<OAuthProviderPublicDTO> |
getProviders()
Get registered OAuth providers
|
com.squareup.okhttp.Call |
getProvidersAsync(ApiCallback<List<OAuthProviderPublicDTO>> callback)
Get registered OAuth providers (asynchronously)
|
ApiResponse<List<OAuthProviderPublicDTO>> |
getProvidersWithHttpInfo()
Get registered OAuth providers
|
ApiResponse<OAuthProviderPublicDTO> |
getProviderWithHttpInfo(Integer id)
Get OAuth provider details
|
AccountDTO |
login(LoginRequestDTO body)
Try to authenticate with credentials
|
com.squareup.okhttp.Call |
loginAsync(LoginRequestDTO body,
ApiCallback<AccountDTO> callback)
Try to authenticate with credentials (asynchronously)
|
ApiResponse<AccountDTO> |
loginWithHttpInfo(LoginRequestDTO body)
Try to authenticate with credentials
|
void |
logout()
Log out connected user
|
com.squareup.okhttp.Call |
logoutAsync(ApiCallback<Void> callback)
Log out connected user (asynchronously)
|
ApiResponse<Void> |
logoutWithHttpInfo()
Log out connected user
|
AccountDTO |
oAuthLogin(OAuthLoginRequestDTO body)
Try to authenticate with OAuth
|
com.squareup.okhttp.Call |
oAuthLoginAsync(OAuthLoginRequestDTO body,
ApiCallback<AccountDTO> callback)
Try to authenticate with OAuth (asynchronously)
|
ApiResponse<AccountDTO> |
oAuthLoginWithHttpInfo(OAuthLoginRequestDTO body)
Try to authenticate with OAuth
|
void |
sendPasswordRecover(PasswordRecoverDTO body)
Recover account password
|
com.squareup.okhttp.Call |
sendPasswordRecoverAsync(PasswordRecoverDTO body,
ApiCallback<Void> callback)
Recover account password (asynchronously)
|
ApiResponse<Void> |
sendPasswordRecoverWithHttpInfo(PasswordRecoverDTO body)
Recover account password
|
void |
sendPasswordRecovery(PasswordRecoveryRequestDTO body)
Send password recovery request
|
com.squareup.okhttp.Call |
sendPasswordRecoveryAsync(PasswordRecoveryRequestDTO body,
ApiCallback<Void> callback)
Send password recovery request (asynchronously)
|
ApiResponse<Void> |
sendPasswordRecoveryWithHttpInfo(PasswordRecoveryRequestDTO body)
Send password recovery request
|
void |
setApiClient(ApiClient apiClient) |
public AuthApi()
public AuthApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public AccountDTO login(LoginRequestDTO body) throws ApiException
body - Login requestApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AccountDTO> loginWithHttpInfo(LoginRequestDTO body) throws ApiException
body - Login requestApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call loginAsync(LoginRequestDTO body, ApiCallback<AccountDTO> callback) throws ApiException
body - Login requestcallback - 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 logout()
throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> logoutWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call logoutAsync(ApiCallback<Void> 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 AccountDTO oAuthLogin(OAuthLoginRequestDTO body) throws ApiException
body - OAuth login requestApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<AccountDTO> oAuthLoginWithHttpInfo(OAuthLoginRequestDTO body) throws ApiException
body - OAuth login requestApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call oAuthLoginAsync(OAuthLoginRequestDTO body, ApiCallback<AccountDTO> callback) throws ApiException
body - OAuth login requestcallback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic List<OAuthProviderPublicDTO> getProviders() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<OAuthProviderPublicDTO>> getProvidersWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getProvidersAsync(ApiCallback<List<OAuthProviderPublicDTO>> 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 OAuthProviderPublicDTO getProvider(Integer id) throws ApiException
id - Provider idApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OAuthProviderPublicDTO> getProviderWithHttpInfo(Integer id) throws ApiException
id - Provider idApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getProviderAsync(Integer id, ApiCallback<OAuthProviderPublicDTO> callback) throws ApiException
id - Provider idcallback - 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 sendPasswordRecover(PasswordRecoverDTO body) throws ApiException
body - Password recovery processApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> sendPasswordRecoverWithHttpInfo(PasswordRecoverDTO body) throws ApiException
body - Password recovery processApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call sendPasswordRecoverAsync(PasswordRecoverDTO body, ApiCallback<Void> callback) throws ApiException
body - Password recovery processcallback - 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 sendPasswordRecovery(PasswordRecoveryRequestDTO body) throws ApiException
body - Password recovery requestApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> sendPasswordRecoveryWithHttpInfo(PasswordRecoveryRequestDTO body) throws ApiException
body - Password recovery requestApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call sendPasswordRecoveryAsync(PasswordRecoveryRequestDTO body, ApiCallback<Void> callback) throws ApiException
body - Password recovery requestcallback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2019 DocDoku. All rights reserved.