Interface IOAuthConnectionApiSync
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public interface IOAuthConnectionApiSync : IApiAccessor
Methods
View SourceCreateOAuthConnection(string, string, string, int)
Create an OAuth connection
Declaration
CreateOAuthConnectionResult CreateOAuthConnection(string redirectBase, string oAuthConnectionType, string emailAddress = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | redirectBase | |
| string | oAuthConnectionType | |
| string | emailAddress | (optional) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| CreateOAuthConnectionResult | CreateOAuthConnectionResult |
Remarks
Configure an inbox for OAuth sync with MailSlurp
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
CreateOAuthConnectionWithHttpInfo(string, string, string, int)
Create an OAuth connection
Declaration
ApiResponse<CreateOAuthConnectionResult> CreateOAuthConnectionWithHttpInfo(string redirectBase, string oAuthConnectionType, string emailAddress = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | redirectBase | |
| string | oAuthConnectionType | |
| string | emailAddress | (optional) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<CreateOAuthConnectionResult> | ApiResponse of CreateOAuthConnectionResult |
Remarks
Configure an inbox for OAuth sync with MailSlurp
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ExchangeAuthorizationTokenAndCreateOrUpdateInbox(string, string, int)
Exchange authorization code for access token and create inbox
Declaration
CreateOAuthExchangeResult ExchangeAuthorizationTokenAndCreateOrUpdateInbox(string authorizationCode, string redirectUri, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | authorizationCode | |
| string | redirectUri | |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| CreateOAuthExchangeResult | CreateOAuthExchangeResult |
Remarks
Exchange an OAuth code for an access token and create an inbox connection in MailSlurp
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
ExchangeAuthorizationTokenAndCreateOrUpdateInboxWithHttpInfo(string, string, int)
Exchange authorization code for access token and create inbox
Declaration
ApiResponse<CreateOAuthExchangeResult> ExchangeAuthorizationTokenAndCreateOrUpdateInboxWithHttpInfo(string authorizationCode, string redirectUri, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | authorizationCode | |
| string | redirectUri | |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<CreateOAuthExchangeResult> | ApiResponse of CreateOAuthExchangeResult |
Remarks
Exchange an OAuth code for an access token and create an inbox connection in MailSlurp
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |