Class UserControllerApi
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public class UserControllerApi : IUserControllerApi, IUserControllerApiSync, IUserControllerApiAsync, IApiAccessor
Constructors
View SourceUserControllerApi()
Initializes a new instance of the UserControllerApi class.
Declaration
public UserControllerApi()
UserControllerApi(string)
Initializes a new instance of the UserControllerApi class.
Declaration
public UserControllerApi(string basePath)
Parameters
Type | Name | Description |
---|---|---|
string | basePath |
UserControllerApi(Configuration)
Initializes a new instance of the UserControllerApi class using Configuration object
Declaration
public UserControllerApi(Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | An instance of Configuration |
UserControllerApi(ISynchronousClient, IAsynchronousClient, IReadableConfiguration)
Initializes a new instance of the UserControllerApi class using a Configuration object and client instance.
Declaration
public UserControllerApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ISynchronousClient | client | The client interface for synchronous API access. |
IAsynchronousClient | asyncClient | The client interface for asynchronous API access. |
IReadableConfiguration | configuration | The configuration object. |
Properties
View SourceAsynchronousClient
The client for accessing this underlying API asynchronously.
Declaration
public IAsynchronousClient AsynchronousClient { get; set; }
Property Value
Type | Description |
---|---|
IAsynchronousClient |
Client
The client for accessing this underlying API synchronously.
Declaration
public ISynchronousClient Client { get; set; }
Property Value
Type | Description |
---|---|
ISynchronousClient |
Configuration
Gets or sets the configuration object
Declaration
public IReadableConfiguration Configuration { get; set; }
Property Value
Type | Description |
---|---|
IReadableConfiguration | An instance of the Configuration |
ExceptionFactory
Provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Type | Description |
---|---|
ExceptionFactory |
Methods
View SourceGetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
string | The base path |
GetEntityAutomations(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, string, int)
Declaration
public PageEntityAutomationItems GetEntityAutomations(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? phoneId = null, string filter = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
string | filter | Optional automation type filter (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
PageEntityAutomationItems | PageEntityAutomationItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityAutomationsAsync(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, string, int, CancellationToken)
Declaration
public Task<PageEntityAutomationItems> GetEntityAutomationsAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? phoneId = null, string filter = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
string | filter | Optional automation type filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageEntityAutomationItems> | Task of PageEntityAutomationItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityAutomationsWithHttpInfo(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, string, int)
Declaration
public ApiResponse<PageEntityAutomationItems> GetEntityAutomationsWithHttpInfo(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? phoneId = null, string filter = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
string | filter | Optional automation type filter (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<PageEntityAutomationItems> | ApiResponse of PageEntityAutomationItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityAutomationsWithHttpInfoAsync(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, string, int, CancellationToken)
Declaration
public Task<ApiResponse<PageEntityAutomationItems>> GetEntityAutomationsWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? phoneId = null, string filter = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
string | filter | Optional automation type filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageEntityAutomationItems>> | Task of ApiResponse (PageEntityAutomationItems) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityEvents(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, Guid?, Guid?, Guid?, string, int)
Declaration
public PageEntityEventItems GetEntityEvents(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? emailId = null, Guid? phoneId = null, Guid? smsId = null, Guid? attachmentId = null, string filter = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | emailId | Optional email ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
Guid? | smsId | Optional SMS ID (optional) |
Guid? | attachmentId | Optional attachment ID (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
PageEntityEventItems | PageEntityEventItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityEventsAsync(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, Guid?, Guid?, Guid?, string, int, CancellationToken)
Declaration
public Task<PageEntityEventItems> GetEntityEventsAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? emailId = null, Guid? phoneId = null, Guid? smsId = null, Guid? attachmentId = null, string filter = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | emailId | Optional email ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
Guid? | smsId | Optional SMS ID (optional) |
Guid? | attachmentId | Optional attachment ID (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageEntityEventItems> | Task of PageEntityEventItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityEventsWithHttpInfo(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, Guid?, Guid?, Guid?, string, int)
Declaration
public ApiResponse<PageEntityEventItems> GetEntityEventsWithHttpInfo(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? emailId = null, Guid? phoneId = null, Guid? smsId = null, Guid? attachmentId = null, string filter = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | emailId | Optional email ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
Guid? | smsId | Optional SMS ID (optional) |
Guid? | attachmentId | Optional attachment ID (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<PageEntityEventItems> | ApiResponse of PageEntityEventItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityEventsWithHttpInfoAsync(int?, int?, string, DateTime?, DateTime?, Guid?, Guid?, Guid?, Guid?, Guid?, string, int, CancellationToken)
Declaration
public Task<ApiResponse<PageEntityEventItems>> GetEntityEventsWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, Guid? inboxId = null, Guid? emailId = null, Guid? phoneId = null, Guid? smsId = null, Guid? attachmentId = null, string filter = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
Guid? | inboxId | Optional inbox ID (optional) |
Guid? | emailId | Optional email ID (optional) |
Guid? | phoneId | Optional phone ID (optional) |
Guid? | smsId | Optional SMS ID (optional) |
Guid? | attachmentId | Optional attachment ID (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageEntityEventItems>> | Task of ApiResponse (PageEntityEventItems) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityFavorites(int?, int?, string, DateTime?, DateTime?, string, int)
Declaration
public PageEntityFavouriteItems GetEntityFavorites(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string filter = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
PageEntityFavouriteItems | PageEntityFavouriteItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityFavoritesAsync(int?, int?, string, DateTime?, DateTime?, string, int, CancellationToken)
Declaration
public Task<PageEntityFavouriteItems> GetEntityFavoritesAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string filter = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageEntityFavouriteItems> | Task of PageEntityFavouriteItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityFavoritesWithHttpInfo(int?, int?, string, DateTime?, DateTime?, string, int)
Declaration
public ApiResponse<PageEntityFavouriteItems> GetEntityFavoritesWithHttpInfo(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string filter = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<PageEntityFavouriteItems> | ApiResponse of PageEntityFavouriteItems |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetEntityFavoritesWithHttpInfoAsync(int?, int?, string, DateTime?, DateTime?, string, int, CancellationToken)
Declaration
public Task<ApiResponse<PageEntityFavouriteItems>> GetEntityFavoritesWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, string filter = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index (optional, default to 0) |
int? | size | Optional page size (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to DESC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
string | filter | Optional type filter (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageEntityFavouriteItems>> | Task of ApiResponse (PageEntityFavouriteItems) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonPropertyAsString(string, object, int)
Utility function to extract properties from JSON objects in language where this is cumbersome.
Declaration
public string GetJsonPropertyAsString(string property, object body, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
string | property | JSON property name or dot separated path selector such as |
object | body | |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
string | string |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonPropertyAsStringAsync(string, object, int, CancellationToken)
Utility function to extract properties from JSON objects in language where this is cumbersome.
Declaration
public Task<string> GetJsonPropertyAsStringAsync(string property, object body, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | property | JSON property name or dot separated path selector such as |
object | body | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<string> | Task of string |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonPropertyAsStringWithHttpInfo(string, object, int)
Utility function to extract properties from JSON objects in language where this is cumbersome.
Declaration
public ApiResponse<string> GetJsonPropertyAsStringWithHttpInfo(string property, object body, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
string | property | JSON property name or dot separated path selector such as |
object | body | |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<string> | ApiResponse of string |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetJsonPropertyAsStringWithHttpInfoAsync(string, object, int, CancellationToken)
Utility function to extract properties from JSON objects in language where this is cumbersome.
Declaration
public Task<ApiResponse<string>> GetJsonPropertyAsStringWithHttpInfoAsync(string property, object body, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | property | JSON property name or dot separated path selector such as |
object | body | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<string>> | Task of ApiResponse (string) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetUserInfo(int)
Get account information for your user
Declaration
public UserInfoDto GetUserInfo(int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
UserInfoDto | UserInfoDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetUserInfoAsync(int, CancellationToken)
Get account information for your user
Declaration
public Task<UserInfoDto> GetUserInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<UserInfoDto> | Task of UserInfoDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetUserInfoWithHttpInfo(int)
Get account information for your user
Declaration
public ApiResponse<UserInfoDto> GetUserInfoWithHttpInfo(int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<UserInfoDto> | ApiResponse of UserInfoDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetUserInfoWithHttpInfoAsync(int, CancellationToken)
Get account information for your user
Declaration
public Task<ApiResponse<UserInfoDto>> GetUserInfoWithHttpInfoAsync(int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<UserInfoDto>> | Task of ApiResponse (UserInfoDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |