Package com.mailersend.sdk.analytics
Class Analytics
- java.lang.Object
-
- com.mailersend.sdk.analytics.Analytics
-
public class Analytics extends Object
Analytics class.
- Version:
- $Id: $Id
- Author:
- mailersend
-
-
Constructor Summary
Constructors Constructor Description Analytics(MailerSend ref)Do not initialize directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsdateFrom(Date dateFrom)Sets the date from filter for the requestAnalyticsdateTo(Date dateTo)Sets the date to filter for the requestAnalyticsdomainId(String domainId)Sets the domain id for the requestAnalyticsByDateListgetByDate(String[] events)Gets the analytics by dateAnalyticsByDateListgetByDate(String groupBy, String[] events)Gets the analytics by dateAnalyticsListgetOpensByCountry()Gets the opens by countryAnalyticsListgetOpensByUserAgent()Gets the opens by user agentAnalyticsListgetOpensByUserAgenType()Gets the opens by the user agent type (by reading environment)Analyticstag(String tag)Adds a tag filter to the requestAnalyticstags(String[] tags)Sets the tags filters for the request
-
-
-
Constructor Detail
-
Analytics
public Analytics(MailerSend ref)
Do not initialize directly. This should only be accessed from MailerSend.analytics- Parameters:
ref- aMailerSendobject.
-
-
Method Detail
-
getByDate
public AnalyticsByDateList getByDate(String[] events) throws MailerSendException
Gets the analytics by date- Parameters:
events- an array ofStringobjects.- Returns:
- a
AnalyticsByDateListobject. - Throws:
MailerSendException
-
getByDate
public AnalyticsByDateList getByDate(String groupBy, String[] events) throws MailerSendException
Gets the analytics by date- Parameters:
groupBy- aStringobject.events- an array ofStringobjects.- Returns:
- a
AnalyticsByDateListobject. - Throws:
MailerSendException
-
getOpensByCountry
public AnalyticsList getOpensByCountry() throws MailerSendException
Gets the opens by country- Returns:
- a
AnalyticsListobject. - Throws:
MailerSendException
-
getOpensByUserAgent
public AnalyticsList getOpensByUserAgent() throws MailerSendException
Gets the opens by user agent- Returns:
- a
AnalyticsListobject. - Throws:
MailerSendException
-
getOpensByUserAgenType
public AnalyticsList getOpensByUserAgenType() throws MailerSendException
Gets the opens by the user agent type (by reading environment)- Returns:
- a
AnalyticsListobject. - Throws:
MailerSendException
-
-