Package io.mailtrap.api.trackingoptouts
Interface TrackingOptOuts
- All Known Implementing Classes:
TrackingOptOutsImpl
public interface TrackingOptOuts
-
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.
-
Method Details
-
getTrackingOptOuts
List 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.- Parameters:
filter- - optional filtering and pagination parameters- Returns:
- the page of tracking opt-outs and the cursor for the next page
-
createTrackingOptOut
Add an email address to the tracking opt-out list for a sending domain.- Parameters:
request- - request data- Returns:
- the created tracking opt-out
-
deleteTrackingOptOut
Remove an email address from the tracking opt-out list so open and click tracking can apply again.- Parameters:
trackingOptOutId- - unique tracking opt-out ID- Returns:
- the attributes of the deleted tracking opt-out
-