createAliasWithHttpInfo method

Future<Response> createAliasWithHttpInfo(
  1. CreateAliasOptions createAliasOptions
)

Create an email alias. Must be verified by clicking link inside verification email that will be sent to the address. Once verified the alias will be active.

Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> createAliasWithHttpInfo(CreateAliasOptions createAliasOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/aliases';

  // ignore: prefer_final_locals
  Object? postBody = createAliasOptions;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}