Package ai.reveng.api
Class AuthenticationUsersApi
java.lang.Object
ai.reveng.api.AuthenticationUsersApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the requesters user informationokhttp3.CallGet the requesters user information (asynchronously)okhttp3.CallgetRequesterUserInfoCall(ApiCallback _callback) Build call for getRequesterUserInfoGet the requesters user informationGet a user's public informationGet auth user activityokhttp3.CallGet auth user activity (asynchronously)okhttp3.CallgetUserActivityCall(ApiCallback _callback) Build call for getUserActivityGet auth user activityokhttp3.CallgetUserAsync(Integer userId, ApiCallback<BaseResponseGetPublicUserResponse> _callback) Get a user's public information (asynchronously)okhttp3.CallgetUserCall(Integer userId, ApiCallback _callback) Build call for getUserGet comments by user Retrieves all comments created by a specific user.okhttp3.CallGet comments by user (asynchronously) Retrieves all comments created by a specific user.okhttp3.CallgetUserCommentsCall(ApiCallback _callback) Build call for getUserCommentsGet comments by user Retrieves all comments created by a specific user.getUserWithHttpInfo(Integer userId) Get a user's public informationloginUser(LoginRequest loginRequest) Authenticate a user Authenticates a user and returns a token.okhttp3.CallloginUserAsync(LoginRequest loginRequest, ApiCallback<BaseResponseLoginResponse> _callback) Authenticate a user (asynchronously) Authenticates a user and returns a token.okhttp3.CallloginUserCall(LoginRequest loginRequest, ApiCallback _callback) Build call for loginUserloginUserWithHttpInfo(LoginRequest loginRequest) Authenticate a user Authenticates a user and returns a token.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
AuthenticationUsersApi
public AuthenticationUsersApi() -
AuthenticationUsersApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
getRequesterUserInfoCall
Build call for getRequesterUserInfo- Parameters:
_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 Successful Response - 422 Invalid request parameters -
-
getRequesterUserInfo
Get the requesters user information- Returns:
- BaseResponseGetUserResponse
- 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 Successful Response - 422 Invalid request parameters -
-
getRequesterUserInfoWithHttpInfo
public ApiResponse<BaseResponseGetUserResponse> getRequesterUserInfoWithHttpInfo() throws ApiExceptionGet the requesters user information- Returns:
- ApiResponse<BaseResponseGetUserResponse>
- 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 Successful Response - 422 Invalid request parameters -
-
getRequesterUserInfoAsync
public okhttp3.Call getRequesterUserInfoAsync(ApiCallback<BaseResponseGetUserResponse> _callback) throws ApiException Get the requesters user information (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
Response Details Status Code Description Response Headers 200 Successful Response - 422 Invalid request parameters -
-
getUserCall
Build call for getUser- Parameters:
userId- (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 Successful Response - 422 Invalid request parameters -
-
getUser
Get a user's public information- Parameters:
userId- (required)- Returns:
- BaseResponseGetPublicUserResponse
- 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 Successful Response - 422 Invalid request parameters -
-
getUserWithHttpInfo
public ApiResponse<BaseResponseGetPublicUserResponse> getUserWithHttpInfo(@Nonnull Integer userId) throws ApiException Get a user's public information- Parameters:
userId- (required)- Returns:
- ApiResponse<BaseResponseGetPublicUserResponse>
- 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 Successful Response - 422 Invalid request parameters -
-
getUserAsync
public okhttp3.Call getUserAsync(@Nonnull Integer userId, ApiCallback<BaseResponseGetPublicUserResponse> _callback) throws ApiException Get a user's public information (asynchronously)- Parameters:
userId- (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 Successful Response - 422 Invalid request parameters -
-
getUserActivityCall
Build call for getUserActivity- Parameters:
_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 Successful Response - 422 Invalid request parameters -
-
getUserActivity
Get auth user activity- Returns:
- BaseResponseListUserActivityResponse
- 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 Successful Response - 422 Invalid request parameters -
-
getUserActivityWithHttpInfo
public ApiResponse<BaseResponseListUserActivityResponse> getUserActivityWithHttpInfo() throws ApiExceptionGet auth user activity- Returns:
- ApiResponse<BaseResponseListUserActivityResponse>
- 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 Successful Response - 422 Invalid request parameters -
-
getUserActivityAsync
public okhttp3.Call getUserActivityAsync(ApiCallback<BaseResponseListUserActivityResponse> _callback) throws ApiException Get auth user activity (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
Response Details Status Code Description Response Headers 200 Successful Response - 422 Invalid request parameters -
-
getUserCommentsCall
Build call for getUserComments- Parameters:
_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 Successful Response - 422 Invalid request parameters -
-
getUserComments
Get comments by user Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to.- Returns:
- BaseResponseListCommentResponse
- 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 Successful Response - 422 Invalid request parameters -
-
getUserCommentsWithHttpInfo
public ApiResponse<BaseResponseListCommentResponse> getUserCommentsWithHttpInfo() throws ApiExceptionGet comments by user Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to.- Returns:
- ApiResponse<BaseResponseListCommentResponse>
- 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 Successful Response - 422 Invalid request parameters -
-
getUserCommentsAsync
public okhttp3.Call getUserCommentsAsync(ApiCallback<BaseResponseListCommentResponse> _callback) throws ApiException Get comments by user (asynchronously) Retrieves all comments created by a specific user. Only returns comments for resources the requesting user has access to.- 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
Response Details Status Code Description Response Headers 200 Successful Response - 422 Invalid request parameters -
-
loginUserCall
public okhttp3.Call loginUserCall(@Nonnull LoginRequest loginRequest, ApiCallback _callback) throws ApiException Build call for loginUser- Parameters:
loginRequest- (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 Successful Response - 422 Invalid request parameters - 401 Invalid credentials -
-
loginUser
Authenticate a user Authenticates a user and returns a token.- Parameters:
loginRequest- (required)- Returns:
- BaseResponseLoginResponse
- 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 Successful Response - 422 Invalid request parameters - 401 Invalid credentials -
-
loginUserWithHttpInfo
public ApiResponse<BaseResponseLoginResponse> loginUserWithHttpInfo(@Nonnull LoginRequest loginRequest) throws ApiException Authenticate a user Authenticates a user and returns a token.- Parameters:
loginRequest- (required)- Returns:
- ApiResponse<BaseResponseLoginResponse>
- 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 Successful Response - 422 Invalid request parameters - 401 Invalid credentials -
-
loginUserAsync
public okhttp3.Call loginUserAsync(@Nonnull LoginRequest loginRequest, ApiCallback<BaseResponseLoginResponse> _callback) throws ApiException Authenticate a user (asynchronously) Authenticates a user and returns a token.- Parameters:
loginRequest- (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 Successful Response - 422 Invalid request parameters - 401 Invalid credentials -
-