getTestWebhookPayloadWithHttpInfo method
Get test webhook payload example. Response content depends on eventName passed. Uses EMAIL_RECEIVED
as default.
Note: This method returns the HTTP Response
.
Parameters:
- String eventName:
Implementation
Future<Response> getTestWebhookPayloadWithHttpInfo({ String? eventName, }) async {
// ignore: prefer_const_declarations
final path = r'/webhooks/test';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (eventName != null) {
queryParams.addAll(_queryParams('', 'eventName', eventName));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}