createNewInboxForwarderWithHttpInfo method

Future<Response> createNewInboxForwarderWithHttpInfo(
  1. String inboxId,
  2. CreateInboxForwarderOptions createInboxForwarderOptions
)

Create an inbox forwarder

Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> createNewInboxForwarderWithHttpInfo(String inboxId, CreateInboxForwarderOptions createInboxForwarderOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/forwarders';

  // ignore: prefer_final_locals
  Object? postBody = createInboxForwarderOptions;

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

    queryParams.addAll(_queryParams('', 'inboxId', inboxId));

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


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