Package io.mailtrap.api.trackingoptouts
Class TrackingOptOutsImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.trackingoptouts.TrackingOptOutsImpl
- All Implemented Interfaces:
TrackingOptOuts
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an email address to the tracking opt-out list for a sending domain.deleteTrackingOptOut(String trackingOptOutId) Remove an email address from the tracking opt-out list so open and click tracking can apply again.List email addresses that have opted out of open and click tracking.
-
Constructor Details
-
TrackingOptOutsImpl
-
-
Method Details
-
getTrackingOptOuts
Description copied from interface:TrackingOptOutsList email addresses that have opted out of open and click tracking. The endpoint returns up to 1000 records per request; pass the previous response'slastIdto fetch the next page.- Specified by:
getTrackingOptOutsin interfaceTrackingOptOuts- Parameters:
filter- - optional filtering and pagination parameters- Returns:
- the page of tracking opt-outs and the cursor for the next page
-
createTrackingOptOut
Description copied from interface:TrackingOptOutsAdd an email address to the tracking opt-out list for a sending domain.- Specified by:
createTrackingOptOutin interfaceTrackingOptOuts- Parameters:
request- - request data- Returns:
- the created tracking opt-out
-
deleteTrackingOptOut
Description copied from interface:TrackingOptOutsRemove an email address from the tracking opt-out list so open and click tracking can apply again.- Specified by:
deleteTrackingOptOutin interfaceTrackingOptOuts- Parameters:
trackingOptOutId- - unique tracking opt-out ID- Returns:
- the attributes of the deleted tracking opt-out
-