public class UsersApi
extends java.lang.Object
| Constructor and Description |
|---|
UsersApi() |
UsersApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(java.lang.String old,
java.lang.String _new)
Changes the password of current user
|
com.squareup.okhttp.Call |
changePasswordAsync(java.lang.String old,
java.lang.String _new,
ApiCallback<java.lang.Void> callback)
Changes the password of current user (asynchronously)
|
ApiResponse<java.lang.Void> |
changePasswordWithHttpInfo(java.lang.String old,
java.lang.String _new)
Changes the password of current user
|
UserData |
create(UserData body)
Creates user
|
com.squareup.okhttp.Call |
createAsync(UserData body,
ApiCallback<UserData> callback)
Creates user (asynchronously)
|
ApiResponse<UserData> |
createWithHttpInfo(UserData body)
Creates user
|
UserData |
current()
Returns access-token user
|
com.squareup.okhttp.Call |
currentAsync(ApiCallback<UserData> callback)
Returns access-token user (asynchronously)
|
ApiResponse<UserData> |
currentWithHttpInfo()
Returns access-token user
|
UserData |
get_0(java.lang.String id)
Gets user by id
|
com.squareup.okhttp.Call |
get_0Async(java.lang.String id,
ApiCallback<UserData> callback)
Gets user by id (asynchronously)
|
ApiResponse<UserData> |
get_0WithHttpInfo(java.lang.String id)
Gets user by id
|
PagedUserData |
get(java.lang.Integer limit,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email)
Gets all users which maybe taken by current user
|
ApiClient |
getApiClient() |
com.squareup.okhttp.Call |
getAsync(java.lang.Integer limit,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
ApiCallback<PagedUserData> callback)
Gets all users which maybe taken by current user (asynchronously)
|
ApiResponse<PagedUserData> |
getWithHttpInfo(java.lang.Integer limit,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email)
Gets all users which maybe taken by current user
|
void |
remove(java.lang.String id)
Deletes a user
|
com.squareup.okhttp.Call |
removeAsync(java.lang.String id,
ApiCallback<java.lang.Void> callback)
Deletes a user (asynchronously)
|
ApiResponse<java.lang.Void> |
removeWithHttpInfo(java.lang.String id)
Deletes a user
|
void |
setApiClient(ApiClient apiClient) |
UserData |
update(java.lang.String id,
UserData body)
Updates user
|
com.squareup.okhttp.Call |
updateAsync(java.lang.String id,
UserData body,
ApiCallback<UserData> callback)
Updates user (asynchronously)
|
ApiResponse<UserData> |
updateWithHttpInfo(java.lang.String id,
UserData body)
Updates user
|
public UsersApi()
public UsersApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void changePassword(java.lang.String old,
java.lang.String _new)
throws ApiException
old - (optional)_new - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> changePasswordWithHttpInfo(java.lang.String old, java.lang.String _new) throws ApiException
old - (optional)_new - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call changePasswordAsync(java.lang.String old,
java.lang.String _new,
ApiCallback<java.lang.Void> callback)
throws ApiException
old - (optional)_new - (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 objectpublic UserData create(UserData body) throws ApiException
body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<UserData> createWithHttpInfo(UserData body) throws ApiException
body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createAsync(UserData body, ApiCallback<UserData> callback) throws ApiException
body - (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 objectpublic UserData current() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<UserData> currentWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call currentAsync(ApiCallback<UserData> 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 PagedUserData get(java.lang.Integer limit, java.lang.String firstName, java.lang.String lastName, java.lang.String email) throws ApiException
limit - Limit of search response (optional, default to 100)firstName - Search by first name (optional)lastName - Search by last name (optional)email - Search by email (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PagedUserData> getWithHttpInfo(java.lang.Integer limit, java.lang.String firstName, java.lang.String lastName, java.lang.String email) throws ApiException
limit - Limit of search response (optional, default to 100)firstName - Search by first name (optional)lastName - Search by last name (optional)email - Search by email (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAsync(java.lang.Integer limit,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
ApiCallback<PagedUserData> callback)
throws ApiException
limit - Limit of search response (optional, default to 100)firstName - Search by first name (optional)lastName - Search by last name (optional)email - Search by email (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 objectpublic UserData get_0(java.lang.String id) throws ApiException
id - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<UserData> get_0WithHttpInfo(java.lang.String id) throws ApiException
id - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call get_0Async(java.lang.String id,
ApiCallback<UserData> callback)
throws ApiException
id - (required)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 remove(java.lang.String id)
throws ApiException
id - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> removeWithHttpInfo(java.lang.String id) throws ApiException
id - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call removeAsync(java.lang.String id,
ApiCallback<java.lang.Void> callback)
throws ApiException
id - (required)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 UserData update(java.lang.String id, UserData body) throws ApiException
id - (required)body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<UserData> updateWithHttpInfo(java.lang.String id, UserData body) throws ApiException
id - (required)body - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateAsync(java.lang.String id,
UserData body,
ApiCallback<UserData> callback)
throws ApiException
id - (required)body - (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 object