processEventWithHttpInfo method
Process an event
Note: This method returns the HTTP Response
.
Parameters:
-
String keygenSignature (required): The signature of the event payload.
-
WebhookEvent webhookEvent:
Implementation
Future<Response> processEventWithHttpInfo(String keygenSignature, { WebhookEvent? webhookEvent, }) async {
// ignore: prefer_const_declarations
final path = r'/event';
// ignore: prefer_final_locals
Object? postBody = webhookEvent;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
headerParams[r'Keygen-Signature'] = parameterToString(keygenSignature);
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}