Class UserClient
Represents a function to interact with the API endpoints. The function perform action such as getting the Api credit details and so on.
Inheritance
Namespace: BoldSign.Api
Assembly: BoldSign.Api.dll
Syntax
public class UserClient : object, IUserClient, IApiAccessor
Constructors
| Improve this Doc View SourceUserClient()
Initializes a new instance of the UserClient class.
Declaration
public UserClient()
UserClient(ApiClient)
Initializes a new instance of the UserClient class using Configuration object.
Declaration
public UserClient(ApiClient apiClient)
Parameters
Type | Name | Description |
---|---|---|
ApiClient | apiClient | An instance of ApiClient. |
UserClient(Configuration)
Initializes a new instance of the UserClient class using Configuration object.
Declaration
public UserClient(Configuration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | An instance of Configuration. |
UserClient(String)
Initializes a new instance of the UserClient class.
Declaration
public UserClient(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | basePath | A basePath. |
Properties
| Improve this Doc View SourceConfiguration
Gets or sets the configuration object.
Declaration
public Configuration Configuration { get; set; }
Property Value
Type | Description |
---|---|
Configuration | An instance of the Configuration. |
ExceptionFactory
Gets or sets provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Type | Description |
---|---|
ExceptionFactory |
Methods
| Improve this Doc View SourceCancelInvitation(String)
Cancel Invitation.
Declaration
public void CancelInvitation(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CancelInvitationAsync(String)
Cancel Invitation.
Declaration
public async Task CancelInvitationAsync(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Returns
Type | Description |
---|---|
Task | CancelInvite. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CancelInvitationAsyncWithHttpInfo(String)
Cancel Invitation.
Declaration
public async Task<ApiResponse<object>> CancelInvitationAsyncWithHttpInfo(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Object>> | ApiResponse of Object(CancelInvite). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CancelInvitationWithHttpInfo(String)
Cancel Invitation.
Declaration
public ApiResponse<object> CancelInvitationWithHttpInfo(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | ApiResponse of Object(void). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CreateUser(List<CreateUserRequest>)
Invite the user.
Declaration
public CreateUserResponse CreateUser(List<CreateUserRequest> createUserRequest = null)
Parameters
Type | Name | Description |
---|---|---|
List<CreateUserRequest> | createUserRequest | The create user details. |
Returns
Type | Description |
---|---|
CreateUserResponse | CreateUserResponse. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CreateUserAsync(List<CreateUserRequest>)
Invite the user.
Declaration
public async Task<CreateUserResponse> CreateUserAsync(List<CreateUserRequest> createUserRequest = null)
Parameters
Type | Name | Description |
---|---|---|
List<CreateUserRequest> | createUserRequest | The create user details. |
Returns
Type | Description |
---|---|
Task<CreateUserResponse> | Task. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CreateUserAsyncWithHttpInfo(List<CreateUserRequest>)
Gets invite the user.
Declaration
public async Task<ApiResponse<CreateUserResponse>> CreateUserAsyncWithHttpInfo(List<CreateUserRequest> createUserRequest = null)
Parameters
Type | Name | Description |
---|---|---|
List<CreateUserRequest> | createUserRequest | The create user details. |
Returns
Type | Description |
---|---|
Task<ApiResponse<CreateUserResponse>> | Task of ApiResponse. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
CreateUserWithHttpInfo(List<CreateUserRequest>)
Gets invite the user.
Declaration
public ApiResponse<CreateUserResponse> CreateUserWithHttpInfo(List<CreateUserRequest> createUserRequest = null)
Parameters
Type | Name | Description |
---|---|---|
List<CreateUserRequest> | createUserRequest | The create user details. |
Returns
Type | Description |
---|---|
ApiResponse<CreateUserResponse> | ApiResponse of Object(CreateUserResponse). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
System.String | The base path. |
GetUserDetails(String)
Get summary of the user details for the given user ID.
Declaration
public UserProperties GetUserDetails(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | User Id. |
Returns
Type | Description |
---|---|
UserProperties | UserDetails. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
GetUserDetailsAsync(String)
Get summary of the user details for the given user ID.
Declaration
public async Task<UserProperties> GetUserDetailsAsync(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | User Id. |
Returns
Type | Description |
---|---|
Task<UserProperties> | Task of UserProperties. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
GetUserDetailsAsyncWithHttpInfo(String)
Get summary of the user details for the given user ID.
Declaration
public async Task<ApiResponse<UserProperties>> GetUserDetailsAsyncWithHttpInfo(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | User Id. |
Returns
Type | Description |
---|---|
Task<ApiResponse<UserProperties>> | ApiResponse of UserDetails. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
GetUserDetailsWithHttpInfo(String)
Get summary of the user details for the given user ID.
Declaration
public ApiResponse<UserProperties> GetUserDetailsWithHttpInfo(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | User Id. |
Returns
Type | Description |
---|---|
ApiResponse<UserProperties> | ApiResponse of UserDetails. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
IsValidEmail(String)
Validate Email.
Declaration
public static bool IsValidEmail(string email)
Parameters
Type | Name | Description |
---|---|---|
System.String | Email Id. |
Returns
Type | Description |
---|---|
System.Boolean | True if the email is valid. |
ListUsers(Int32, Nullable<Int32>, String)
Gets the user list.
Declaration
public UserRecords ListUsers(int page, int? pageSize, string search = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | search | The search key. |
Returns
Type | Description |
---|---|
UserRecords | A Task. |
ListUsersAsync(Int32, Nullable<Int32>, String)
Gets the user list.
Declaration
public async Task<UserRecords> ListUsersAsync(int page, int? pageSize = null, string search = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | search | The search key. |
Returns
Type | Description |
---|---|
Task<UserRecords> | Task of UserRecords. |
ListUsersAsyncWithHttpInfo(Int32, Nullable<Int32>, String)
Gets the user list.
Declaration
public async Task<ApiResponse<UserRecords>> ListUsersAsyncWithHttpInfo(int page, int? pageSize = null, string search = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | search | The search key. |
Returns
Type | Description |
---|---|
Task<ApiResponse<UserRecords>> | Task of ApiResponse (UserRecords). |
ListUsersWithHttpInfo(Int32, Nullable<Int32>, String)
Gets the user list.
Declaration
public ApiResponse<UserRecords> ListUsersWithHttpInfo(int page, int? pageSize, string search = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | page | The page number. |
System.Nullable<System.Int32> | pageSize | The page size. |
System.String | search | The search key. |
Returns
Type | Description |
---|---|
ApiResponse<UserRecords> | A Task. |
ResendInvitation(String)
Resend Invitation.
Declaration
public void ResendInvitation(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
ResendInvitationAsync(String)
Resend Invitation.
Declaration
public async Task ResendInvitationAsync(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Returns
Type | Description |
---|---|
Task | ResendInvite. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
ResendInvitationAsyncWithHttpInfo(String)
Resend Invitation.
Declaration
public async Task<ApiResponse<object>> ResendInvitationAsyncWithHttpInfo(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Object>> | ApiResponse of Object(ResendInvite). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
ResendInvitationWithHttpInfo(String)
Resend Invitation.
Declaration
public ApiResponse<object> ResendInvitationWithHttpInfo(string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | userId. |
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | ApiResponse of Object(void). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
UpdateUser(UpdateUser)
Updates user role.
Declaration
public void UpdateUser(UpdateUser updateUserQuery)
Parameters
Type | Name | Description |
---|---|---|
UpdateUser | updateUserQuery | update User Query. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
UpdateUserAsync(UpdateUser)
Updates user role.
Declaration
public async Task UpdateUserAsync(UpdateUser updateUserQuery)
Parameters
Type | Name | Description |
---|---|---|
UpdateUser | updateUserQuery | updateUserQuery. |
Returns
Type | Description |
---|---|
Task | UpdateUserRole. |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
UpdateUserAsyncWithHttpInfo(UpdateUser)
Updates user role.
Declaration
public async Task<ApiResponse<object>> UpdateUserAsyncWithHttpInfo(UpdateUser updateUserQuery)
Parameters
Type | Name | Description |
---|---|---|
UpdateUser | updateUserQuery | updateUserQuery. |
Returns
Type | Description |
---|---|
Task<ApiResponse<System.Object>> | ApiResponse of Object(UpdateUserRole). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |
UpdateUserWithHttpInfo(UpdateUser)
Updates user role.
Declaration
public ApiResponse<object> UpdateUserWithHttpInfo(UpdateUser updateUserQuery)
Parameters
Type | Name | Description |
---|---|---|
UpdateUser | updateUserQuery | update User Query. |
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | ApiResponse of Object(void). |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call. |