public class UsersApi extends Object
| Constructor and Description |
|---|
UsersApi() |
UsersApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
Me |
meGet()
Returns the current user
|
com.squareup.okhttp.Call |
meGetAsync(ApiCallback<Me> callback)
(asynchronously)
Returns the current user
|
com.squareup.okhttp.Call |
meGetCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for meGet
|
ApiResponse<Me> |
meGetWithHttpInfo()
Returns the current user
|
void |
setApiClient(ApiClient apiClient) |
void |
userDelete(String userID)
Deletes the specified user.
|
com.squareup.okhttp.Call |
userDeleteAsync(String userID,
ApiCallback<Void> callback)
(asynchronously)
Deletes the specified user.
|
com.squareup.okhttp.Call |
userDeleteCall(String userID,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for userDelete
|
ApiResponse<Void> |
userDeleteWithHttpInfo(String userID)
Deletes the specified user.
|
User |
userGet(Integer userID)
Gets the user matching a specific user ID.
|
com.squareup.okhttp.Call |
userGetAsync(Integer userID,
ApiCallback<User> callback)
(asynchronously)
Gets the user matching a specific user ID.
|
com.squareup.okhttp.Call |
userGetCall(Integer userID,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for userGet
|
ApiResponse<User> |
userGetWithHttpInfo(Integer userID)
Gets the user matching a specific user ID.
|
UserList |
usersGet(Integer top,
Integer skip,
String externalId,
String userChainIdentifier)
Get Users
Lists all users within the connected blockchain consortium.
|
com.squareup.okhttp.Call |
usersGetAsync(Integer top,
Integer skip,
String externalId,
String userChainIdentifier,
ApiCallback<UserList> callback)
Get Users (asynchronously)
Lists all users within the connected blockchain consortium.
|
com.squareup.okhttp.Call |
usersGetCall(Integer top,
Integer skip,
String externalId,
String userChainIdentifier,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for usersGet
|
ApiResponse<UserList> |
usersGetWithHttpInfo(Integer top,
Integer skip,
String externalId,
String userChainIdentifier)
Get Users
Lists all users within the connected blockchain consortium.
|
Integer |
usersPost(UserInput userInput)
Adds a user to the blockchain consortium.
|
com.squareup.okhttp.Call |
usersPostAsync(UserInput userInput,
ApiCallback<Integer> callback)
(asynchronously)
Adds a user to the blockchain consortium.
|
com.squareup.okhttp.Call |
usersPostCall(UserInput userInput,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for usersPost
|
ApiResponse<Integer> |
usersPostWithHttpInfo(UserInput userInput)
Adds a user to the blockchain consortium.
|
public UsersApi()
public UsersApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call meGetCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Me meGet() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Me> meGetWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call meGetAsync(ApiCallback<Me> 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 com.squareup.okhttp.Call userDeleteCall(String userID, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
userID - The id of the user (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void userDelete(String userID) throws ApiException
userID - The id of the user (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> userDeleteWithHttpInfo(String userID) throws ApiException
userID - The id of the user (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call userDeleteAsync(String userID, ApiCallback<Void> callback) throws ApiException
userID - The id of the user (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 com.squareup.okhttp.Call userGetCall(Integer userID, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
userID - The id of the user (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic User userGet(Integer userID) throws ApiException
userID - The id of the user (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<User> userGetWithHttpInfo(Integer userID) throws ApiException
userID - The id of the user (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call userGetAsync(Integer userID, ApiCallback<User> callback) throws ApiException
userID - The id of the user (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 com.squareup.okhttp.Call usersGetCall(Integer top, Integer skip, String externalId, String userChainIdentifier, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)externalId - The external ID of the user to query for (optional)userChainIdentifier - The on-chain address of the user to query for (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic UserList usersGet(Integer top, Integer skip, String externalId, String userChainIdentifier) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)externalId - The external ID of the user to query for (optional)userChainIdentifier - The on-chain address of the user to query for (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<UserList> usersGetWithHttpInfo(Integer top, Integer skip, String externalId, String userChainIdentifier) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)externalId - The external ID of the user to query for (optional)userChainIdentifier - The on-chain address of the user to query for (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call usersGetAsync(Integer top, Integer skip, String externalId, String userChainIdentifier, ApiCallback<UserList> callback) throws ApiException
top - The maximum number of items to return (optional)skip - The number of items to skip before returning (optional)externalId - The external ID of the user to query for (optional)userChainIdentifier - The on-chain address of the user to query for (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 com.squareup.okhttp.Call usersPostCall(UserInput userInput, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
userInput - New user to add (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Integer usersPost(UserInput userInput) throws ApiException
userInput - New user to add (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Integer> usersPostWithHttpInfo(UserInput userInput) throws ApiException
userInput - New user to add (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call usersPostAsync(UserInput userInput, ApiCallback<Integer> callback) throws ApiException
userInput - New user to add (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.