validateBatchWithHttpInfo method
Validate multiple emails (sync)
Validate up to 100 email addresses synchronously. For larger lists, use the bulk jobs API.
Note: This method returns the HTTP Response.
Parameters:
- ValidateBatchRequest validateBatchRequest (required):
Implementation
Future<Response> validateBatchWithHttpInfo(ValidateBatchRequest validateBatchRequest,) async {
// ignore: prefer_const_declarations
final path = r'/v1/validate/batch';
// ignore: prefer_final_locals
Object? postBody = validateBatchRequest;
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,
);
}