Package com.w3asel.inventree.api
Class AuthenticationLoginByCodeApi
java.lang.Object
com.w3asel.inventree.api.AuthenticationLoginByCodeApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallauthAuthCodeConfirmPost(AllauthConfirmLoginCode allauthConfirmLoginCode) Confirm login code Use this endpoint to pass along the received \"special\" login code.okhttp3.CallallauthAuthCodeConfirmPostAsync(AllauthConfirmLoginCode allauthConfirmLoginCode, ApiCallback<AllauthAuthenticatedResponse> _callback) Confirm login code (asynchronously) Use this endpoint to pass along the received \"special\" login code.okhttp3.CallallauthAuthCodeConfirmPostCall(AllauthConfirmLoginCode allauthConfirmLoginCode, ApiCallback _callback) Build call for allauthAuthCodeConfirmPostallauthAuthCodeConfirmPostWithHttpInfo(AllauthConfirmLoginCode allauthConfirmLoginCode) Confirm login code Use this endpoint to pass along the received \"special\" login code.voidallauthAuthCodeRequestPost(AllauthRequestLoginCode allauthRequestLoginCode) Request login code Request a \"special\" login code that is sent to the user by email.okhttp3.CallallauthAuthCodeRequestPostAsync(AllauthRequestLoginCode allauthRequestLoginCode, ApiCallback<Void> _callback) Request login code (asynchronously) Request a \"special\" login code that is sent to the user by email.okhttp3.CallallauthAuthCodeRequestPostCall(AllauthRequestLoginCode allauthRequestLoginCode, ApiCallback _callback) Build call for allauthAuthCodeRequestPostallauthAuthCodeRequestPostWithHttpInfo(AllauthRequestLoginCode allauthRequestLoginCode) Request login code Request a \"special\" login code that is sent to the user by email.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
AuthenticationLoginByCodeApi
public AuthenticationLoginByCodeApi() -
AuthenticationLoginByCodeApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
allauthAuthCodeConfirmPostCall
public okhttp3.Call allauthAuthCodeConfirmPostCall(@Nonnull AllauthConfirmLoginCode allauthConfirmLoginCode, ApiCallback _callback) throws ApiException Build call for allauthAuthCodeConfirmPost- Parameters:
allauthConfirmLoginCode- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Authenticated by code. - 400 An input error occurred. - 401 Not authenticated. - 409 Conflict. The \"login by code\" flow is not pending. -
-
allauthAuthCodeConfirmPost
public AllauthAuthenticatedResponse allauthAuthCodeConfirmPost(@Nonnull AllauthConfirmLoginCode allauthConfirmLoginCode) throws ApiException Confirm login code Use this endpoint to pass along the received \"special\" login code.- Parameters:
allauthConfirmLoginCode- (required)- Returns:
- AllauthAuthenticatedResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Authenticated by code. - 400 An input error occurred. - 401 Not authenticated. - 409 Conflict. The \"login by code\" flow is not pending. -
-
allauthAuthCodeConfirmPostWithHttpInfo
public ApiResponse<AllauthAuthenticatedResponse> allauthAuthCodeConfirmPostWithHttpInfo(@Nonnull AllauthConfirmLoginCode allauthConfirmLoginCode) throws ApiException Confirm login code Use this endpoint to pass along the received \"special\" login code.- Parameters:
allauthConfirmLoginCode- (required)- Returns:
- ApiResponse<AllauthAuthenticatedResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 Authenticated by code. - 400 An input error occurred. - 401 Not authenticated. - 409 Conflict. The \"login by code\" flow is not pending. -
-
allauthAuthCodeConfirmPostAsync
public okhttp3.Call allauthAuthCodeConfirmPostAsync(@Nonnull AllauthConfirmLoginCode allauthConfirmLoginCode, ApiCallback<AllauthAuthenticatedResponse> _callback) throws ApiException Confirm login code (asynchronously) Use this endpoint to pass along the received \"special\" login code.- Parameters:
allauthConfirmLoginCode- (required)_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:
Response Details Status Code Description Response Headers 200 Authenticated by code. - 400 An input error occurred. - 401 Not authenticated. - 409 Conflict. The \"login by code\" flow is not pending. -
-
allauthAuthCodeRequestPostCall
public okhttp3.Call allauthAuthCodeRequestPostCall(@Nonnull AllauthRequestLoginCode allauthRequestLoginCode, ApiCallback _callback) throws ApiException Build call for allauthAuthCodeRequestPost- Parameters:
allauthRequestLoginCode- Request a login code. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 400 An input error occurred. - 401 Not authenticated. -
-
allauthAuthCodeRequestPost
public void allauthAuthCodeRequestPost(@Nonnull AllauthRequestLoginCode allauthRequestLoginCode) throws ApiException Request login code Request a \"special\" login code that is sent to the user by email.- Parameters:
allauthRequestLoginCode- Request a login code. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 400 An input error occurred. - 401 Not authenticated. -
-
allauthAuthCodeRequestPostWithHttpInfo
public ApiResponse<Void> allauthAuthCodeRequestPostWithHttpInfo(@Nonnull AllauthRequestLoginCode allauthRequestLoginCode) throws ApiException Request login code Request a \"special\" login code that is sent to the user by email.- Parameters:
allauthRequestLoginCode- Request a login code. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 400 An input error occurred. - 401 Not authenticated. -
-
allauthAuthCodeRequestPostAsync
public okhttp3.Call allauthAuthCodeRequestPostAsync(@Nonnull AllauthRequestLoginCode allauthRequestLoginCode, ApiCallback<Void> _callback) throws ApiException Request login code (asynchronously) Request a \"special\" login code that is sent to the user by email.- Parameters:
allauthRequestLoginCode- Request a login code. (required)_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:
Response Details Status Code Description Response Headers 400 An input error occurred. - 401 Not authenticated. -
-