verifyWebhookSignatureWithHttpInfo method

Future<Response> verifyWebhookSignatureWithHttpInfo(
  1. VerifyWebhookSignatureOptions verifyWebhookSignatureOptions
)

Verify a webhook payload signature

Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> verifyWebhookSignatureWithHttpInfo(VerifyWebhookSignatureOptions verifyWebhookSignatureOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/webhooks/verify';

  // ignore: prefer_final_locals
  Object? postBody = verifyWebhookSignatureOptions;

  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,
  );
}