All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mailosaur.Previews Maven / Gradle / Ivy

package com.mailosaur;

import com.mailosaur.models.PreviewEmailClientListResult;

import java.io.IOException;

public class Previews {
    private MailosaurClient client;

    public Previews(MailosaurClient client) {
        this.client = client;
    }

    /**
     * Returns the list of all email clients that can be used to generate email previews.
     *
     * @throws MailosaurException Thrown if Mailosaur responds with an error.
     * @throws IOException Unexpected exception.
     * @return The result of the email client listing operation.
     */
    public PreviewEmailClientListResult listEmailClients() throws IOException, MailosaurException {
        return client.request("GET", "api/previews/clients").parseAs(PreviewEmailClientListResult.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy