Interface IConnectorControllerApiAsync
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public interface IConnectorControllerApiAsync : IApiAccessor
Methods
View SourceCreateConnectorAsync(CreateConnectorOptions, int, CancellationToken)
Create an inbox connector
Declaration
Task<ConnectorDto> CreateConnectorAsync(CreateConnectorOptions createConnectorOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateConnectorOptions | createConnectorOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ConnectorDto> | Task of ConnectorDto |
Remarks
Sync emails between external mailboxes and MailSlurp inboxes
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateConnectorImapConnectionAsync(Guid, CreateConnectorImapConnectionOptions, int, CancellationToken)
Create an inbox connector IMAP connection
Declaration
Task<ConnectorImapConnectionDto> CreateConnectorImapConnectionAsync(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
CreateConnectorImapConnectionOptions | createConnectorImapConnectionOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ConnectorImapConnectionDto> | Task of ConnectorImapConnectionDto |
Remarks
Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateConnectorImapConnectionWithHttpInfoAsync(Guid, CreateConnectorImapConnectionOptions, int, CancellationToken)
Create an inbox connector IMAP connection
Declaration
Task<ApiResponse<ConnectorImapConnectionDto>> CreateConnectorImapConnectionWithHttpInfoAsync(Guid id, CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
CreateConnectorImapConnectionOptions | createConnectorImapConnectionOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ConnectorImapConnectionDto>> | Task of ApiResponse (ConnectorImapConnectionDto) |
Remarks
Allows the reading of emails in an external mailbox and syncing to a MailSlurp inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateConnectorSmtpConnectionAsync(Guid, CreateConnectorSmtpConnectionOptions, int, CancellationToken)
Create an inbox connector SMTP connection
Declaration
Task<ConnectorSmtpConnectionDto> CreateConnectorSmtpConnectionAsync(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
CreateConnectorSmtpConnectionOptions | createConnectorSmtpConnectionOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ConnectorSmtpConnectionDto> | Task of ConnectorSmtpConnectionDto |
Remarks
Allows sending via connector and email is routed to connected inbox and sent via SMTP
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateConnectorSmtpConnectionWithHttpInfoAsync(Guid, CreateConnectorSmtpConnectionOptions, int, CancellationToken)
Create an inbox connector SMTP connection
Declaration
Task<ApiResponse<ConnectorSmtpConnectionDto>> CreateConnectorSmtpConnectionWithHttpInfoAsync(Guid id, CreateConnectorSmtpConnectionOptions createConnectorSmtpConnectionOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
CreateConnectorSmtpConnectionOptions | createConnectorSmtpConnectionOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ConnectorSmtpConnectionDto>> | Task of ApiResponse (ConnectorSmtpConnectionDto) |
Remarks
Allows sending via connector and email is routed to connected inbox and sent via SMTP
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
CreateConnectorWithHttpInfoAsync(CreateConnectorOptions, int, CancellationToken)
Create an inbox connector
Declaration
Task<ApiResponse<ConnectorDto>> CreateConnectorWithHttpInfoAsync(CreateConnectorOptions createConnectorOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CreateConnectorOptions | createConnectorOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ConnectorDto>> | Task of ApiResponse (ConnectorDto) |
Remarks
Sync emails between external mailboxes and MailSlurp inboxes
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllConnectorAsync(int, CancellationToken)
Delete all inbox connectors
Declaration
Task DeleteAllConnectorAsync(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 | Task of void |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteAllConnectorWithHttpInfoAsync(int, CancellationToken)
Delete all inbox connectors
Declaration
Task<ApiResponse<object>> DeleteAllConnectorWithHttpInfoAsync(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<object>> | Task of ApiResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteConnectorAsync(Guid, int, CancellationToken)
Delete an inbox connector
Declaration
Task DeleteConnectorAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteConnectorImapConnectionAsync(Guid, int, CancellationToken)
Delete an inbox connector IMAP connection
Declaration
Task DeleteConnectorImapConnectionAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Delete IMAP connection for external inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteConnectorImapConnectionWithHttpInfoAsync(Guid, int, CancellationToken)
Delete an inbox connector IMAP connection
Declaration
Task<ApiResponse<object>> DeleteConnectorImapConnectionWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Delete IMAP connection for external inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteConnectorSmtpConnectionAsync(Guid, int, CancellationToken)
Delete an inbox connector SMTP connection
Declaration
Task DeleteConnectorSmtpConnectionAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task | Task of void |
Remarks
Delete SMTP connection for external inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteConnectorSmtpConnectionWithHttpInfoAsync(Guid, int, CancellationToken)
Delete an inbox connector SMTP connection
Declaration
Task<ApiResponse<object>> DeleteConnectorSmtpConnectionWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Remarks
Delete SMTP connection for external inbox
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
DeleteConnectorWithHttpInfoAsync(Guid, int, CancellationToken)
Delete an inbox connector
Declaration
Task<ApiResponse<object>> DeleteConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<object>> | Task of ApiResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllConnectorSyncEventsAsync(int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get all inbox connector sync events
Declaration
Task<PageConnectorSyncEvents> GetAllConnectorSyncEventsAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in connector list pagination (optional, default to 0) |
int? | size | Optional page size in connector list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageConnectorSyncEvents> | Task of PageConnectorSyncEvents |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetAllConnectorSyncEventsWithHttpInfoAsync(int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get all inbox connector sync events
Declaration
Task<ApiResponse<PageConnectorSyncEvents>> GetAllConnectorSyncEventsWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in connector list pagination (optional, default to 0) |
int? | size | Optional page size in connector list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageConnectorSyncEvents>> | Task of ApiResponse (PageConnectorSyncEvents) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorAsync(Guid, int, CancellationToken)
Get an inbox connector
Declaration
Task<ConnectorDto> GetConnectorAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ConnectorDto> | Task of ConnectorDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorsAsync(int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get inbox connectors
Declaration
Task<PageConnector> GetConnectorsAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in connector list pagination (optional, default to 0) |
int? | size | Optional page size in connector list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageConnector> | Task of PageConnector |
Remarks
List inbox connectors that sync external emails to MailSlurp inboxes
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorsWithHttpInfoAsync(int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get inbox connectors
Declaration
Task<ApiResponse<PageConnector>> GetConnectorsWithHttpInfoAsync(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in connector list pagination (optional, default to 0) |
int? | size | Optional page size in connector list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageConnector>> | Task of ApiResponse (PageConnector) |
Remarks
List inbox connectors that sync external emails to MailSlurp inboxes
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorSyncEventAsync(Guid, int, CancellationToken)
Get an inbox connector sync event
Declaration
Task<ConnectorSyncEventDto> GetConnectorSyncEventAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ConnectorSyncEventDto> | Task of ConnectorSyncEventDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorSyncEventsAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get an inbox connector sync events
Declaration
Task<PageConnectorSyncEvents> GetConnectorSyncEventsAsync(Guid id, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int? | page | Optional page index in connector list pagination (optional, default to 0) |
int? | size | Optional page size in connector list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<PageConnectorSyncEvents> | Task of PageConnectorSyncEvents |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorSyncEventsWithHttpInfoAsync(Guid, int?, int?, string, DateTime?, DateTime?, int, CancellationToken)
Get an inbox connector sync events
Declaration
Task<ApiResponse<PageConnectorSyncEvents>> GetConnectorSyncEventsWithHttpInfoAsync(Guid id, int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int? | page | Optional page index in connector list pagination (optional, default to 0) |
int? | size | Optional page size in connector list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<PageConnectorSyncEvents>> | Task of ApiResponse (PageConnectorSyncEvents) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorSyncEventWithHttpInfoAsync(Guid, int, CancellationToken)
Get an inbox connector sync event
Declaration
Task<ApiResponse<ConnectorSyncEventDto>> GetConnectorSyncEventWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ConnectorSyncEventDto>> | Task of ApiResponse (ConnectorSyncEventDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetConnectorWithHttpInfoAsync(Guid, int, CancellationToken)
Get an inbox connector
Declaration
Task<ApiResponse<ConnectorDto>> GetConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ConnectorDto>> | Task of ApiResponse (ConnectorDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SyncConnectorAsync(Guid, int, CancellationToken)
Sync an inbox connector
Declaration
Task<ConnectorSyncRequestResult> SyncConnectorAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ConnectorSyncRequestResult> | Task of ConnectorSyncRequestResult |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SyncConnectorWithHttpInfoAsync(Guid, int, CancellationToken)
Sync an inbox connector
Declaration
Task<ApiResponse<ConnectorSyncRequestResult>> SyncConnectorWithHttpInfoAsync(Guid id, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ConnectorSyncRequestResult>> | Task of ApiResponse (ConnectorSyncRequestResult) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateConnectorAsync(Guid, CreateConnectorOptions, int, CancellationToken)
Update an inbox connector
Declaration
Task<ConnectorDto> UpdateConnectorAsync(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
CreateConnectorOptions | createConnectorOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ConnectorDto> | Task of ConnectorDto |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
UpdateConnectorWithHttpInfoAsync(Guid, CreateConnectorOptions, int, CancellationToken)
Update an inbox connector
Declaration
Task<ApiResponse<ConnectorDto>> UpdateConnectorWithHttpInfoAsync(Guid id, CreateConnectorOptions createConnectorOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | |
CreateConnectorOptions | createConnectorOptions | |
int | operationIndex | Index associated with the operation. |
CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Task<ApiResponse<ConnectorDto>> | Task of ApiResponse (ConnectorDto) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |