createTrackingPixelWithHttpInfo method
Future<Response>
createTrackingPixelWithHttpInfo(
- CreateTrackingPixelOptions createTrackingPixelOptions
Create tracking pixel
Create a tracking pixel. A tracking pixel is an image that can be embedded in an email. When the email is viewed and the image is seen MailSlurp will mark the pixel as seen. Use tracking pixels to monitor email open events. You can receive open notifications via webhook or by fetching the pixel.
Note: This method returns the HTTP Response
.
Parameters:
- CreateTrackingPixelOptions createTrackingPixelOptions (required):
Implementation
Future<Response> createTrackingPixelWithHttpInfo(CreateTrackingPixelOptions createTrackingPixelOptions,) async {
// ignore: prefer_const_declarations
final path = r'/tracking/pixels';
// ignore: prefer_final_locals
Object? postBody = createTrackingPixelOptions;
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,
);
}