GetLists

Calls up all the Lists that this user either owns or has access to.

Parametres

This method does not have any parameters.

Returns:

On success:

<Array> Lists details

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Users/GetLists?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN"
object result = parser.GetLists();

CreateList

This method creates a List based on current class variables.

Parametres:

CreateList(listName, descriptiveName, mobilePrefix, contactFields)
$ http POST https://api.mailmailmail.net/v1.1/Lists/CreateList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listName=value&descriptiveName=value&mobile_prefix=value&contact_fields=value"

Returns:

On success:

<Integer> listid

On failure:

<Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Lists/CreateList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listName=List%name&descriptiveName=List%description&mobile_prefix=389&contact_fields[0]=1&contact_fields[1]=2"
string listName = "List name";
string descriptiveName = "List description";
string mobilePrefix = "389";
int[] contactFields = new int[] {1, 2};

object result = parser.CreateList(listName, descriptiveName, mobilePrefix, contactFields);

UpdateList

Updates a current List based on the current class variables.

Parametres:

 UpdateList(listid, listName, descriptiveName, mobilePrefix);
$ http POST https://api.mailmailmail.net/v1.1/Lists/UpdateList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&listName=value&descriptiveName=value&mobile_prefix=value"

Returns:

On success:

<Boolean> true

On failure:

<Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Lists/UpdateList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&listName=List%new%name&descriptiveName=New%Description"
int listid = 12;
string listName = "List new name";
string descriptiveName = "New Description";

object result = parser.UpdateList(listid, listName, descriptiveName);

CopyList

Copy List details including contact fields.

Parametres:

CopyList(listid);
$ http POST https://api.mailmailmail.net/v1.1/Lists/CopyList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value"

Returns:

On success:

<Array> {"true", new id} 

On failure:

<Array> {“false”, message}

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Lists/CopyList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12"
int listid = 12;

object result = parser.CopyList(listid);

DeleteList

Delete a List from the database.

Parametres:

 DeleteList(listid);
$ http DELETE 'https://api.mailmailmail.net/v1.1/Lists/DeleteList' -d 'listid=value&Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN'

Returns:

On success:

<Boolean> true

On failure:

<Boolean> false

Examples:

$ http DELETE 'https://api.mailmailmail.net/v1.1/Lists/DeleteList' -d 'listid=12&Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN'
int listid = 12;

object result = parser.DeleteList(listid);

CreateCustomField

Create new custom field.

Parametres:

CreateCustomField(fieldName, customField, listids);
$ http POST https://api.mailmailmail.net/v1.1/CustomFields/CreateCustomField --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&name=value&fieldtype=value&fieldsettings=value&listids=value"

Returns:

On success:

 <Integer> Return id of new custom field.

On failure:

<Array> (false, message)

Examples:

$ http POST https://api.mailmailmail.net/v1.1/CustomFields/CreateCustomField --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&name=Text%field&fieldtype=text&fieldsettings[MaxLength]=500"
ContactFieldText customField = new ContactFieldText();
customField.fieldSettings["MaxLength"] = "500";
object responce = parser.CreateCustomField(fieldName, customField);
ContactFieldTextArea customField = new ContactFieldTextArea();
customField.fieldSettings["Rows"] = "10";
int[] listids = new int[] { 48 };
object responce = parser.CreateCustomField(fieldName, customField, listids);
ContactFieldNumber customField = new ContactFieldNumber();
customField.fieldSettings["MaxLength"] = "100";
int[] listids = new int[] { 48,49 };
object responce = parser.CreateCustomField(fieldName, customField, listids);
ContactFieldDropdown customField = new ContactFieldDropdown();

List keys = new List();

keys.Add("green");
keys.Add("blue");

List values = new List();

values.Add("green");
values.Add("blue");

customField.fieldSettings["Key"] = keys;
customField.fieldSettings["Value"] = values;

object responce = parser.CreateCustomField(fieldName, customField);
ContactFieldRadioButton customField = new ContactFieldRadioButton();

List keys = new List();

keys.Add("male");
keys.Add("female");

List values = new List();

values.Add("male");
values.Add("female");

customField.fieldSettings["Key"] = keys;
customField.fieldSettings["Value"] = values;

object responce = parser.CreateCustomField(fieldName, customField);
ContactFieldCheckBox customField = new ContactFieldCheckBox();

List keys = new List();

keys.Add("active");
       
List values = new List();

values.Add("active");
       
customField.fieldSettings["Key"] = keys;
customField.fieldSettings["Value"] = values;

object responce = parser.CreateCustomField(fieldName, customField);
ContactFieldDate customField = new ContactFieldDate();

customField.fieldSettings["format_1"] = "day";
customField.fieldSettings["format_2"] = "month";
customField.fieldSettings["format_3"] = "year";
customField.fieldSettings["start_year"] = "2011";
customField.fieldSettings["end_year"] = "2055";

object responce = parser.CreateCustomField(fieldName, customField);
ContactFieldDate customField = new ContactFieldDate();

object responce = parser.CreateCustomField(fieldName, customField);
ContactFieldDate customField = new ContactFieldDate();

customField.fieldSettings["format_1"] = "month";
customField.fieldSettings["format_2"] = "day";
customField.fieldSettings["format_3"] = "year";

object responce = parser.CreateCustomField(fieldName, customField);
ContactFieldDate customField = new ContactFieldDate();

customField.fieldSettings["format_1"] = "year";
customField.fieldSettings["format_2"] = "month";
customField.fieldSettings["format_3"] = "day";

object responce = parser.CreateCustomField(fieldName, customField);

LoadCustomField

Loads up the customfield and sets the appropriate class variables.

Parametres:

 LoadCustomField(fieldid, returnOptions, makeInstance);
$ http GET "https://api.mailmailmail.net/v1.1/CustomFields/LoadCustomField?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&fieldid=value&return_options=value&makeInstance=value"

Returns:

On success:

 <Array> Returns custom field.

On failure:

<Boolean> false.

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/CustomFields/LoadCustomField?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&fieldid=12"
int fieldid = 12;

object responce = parser.LoadCustomField(fieldid);

GetCustomFields

Fetches Contact Fields for the specified List.

Parametres:

 GetCustomFields(listids);
$ http GET "https://api.mailmailmail.net/v1.1/Lists/GetCustomFields?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listids=value"

Returns:

On success:

 <List<ContactFieldText>> Returns the List of Contact Fields.

On failure:

<Array> Empty array.

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Lists/GetCustomFields?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listids[0]=1&listids[1]=2&listids[2]=3"
int[] listids = new int[] { 1, 2, 3 };

object result = parser.GetCustomFields(listids);

AddSubscriberToList

This method adds subscriber to contact List.

Parametres:

AddSubscriberToList(subscriber, contactFields, otmValues);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/AddSubscriberToList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&emailaddress=value&mobile=value&mobilePrefix=value&contactFields=value&add_to_autoresponders=value&skip_listchek=value&confirmed=value&otmValues=value"

Returns:

On success:

<Integer> System ID of the Subscriber.

On failure:

<Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/AddSubscriberToList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=110&emailaddress=test@mail.net"
SubscriberObj subscriber = new SubscriberObj();
subscriber.emailaddress = "test@c.asp";
subscriber.mobile = "070444555";
subscriber.mobilePrefix = "389";
subscriber.listid = 110;
subscriber.addToAutoresponders = false;
subscriber.skipListCheck = false;
subscriber.confirmed = "1";

object result = parser.AddSubscriberToList(subscriber);
List contactFields = new List();
ContactFieldText city = new ContactFieldText();
city.fieldid = 8;
string[] value1 = new string[] { "Kumanovo" };
city.fieldvalue = value1;
contactFields.Add(city);
     
ContactFieldText birthDate = new ContactFieldText();
birthDate.fieldid = 7;
string[] value3 = new string[] { "19/03/2016" };
birthDate.fieldvalue = value3;
contactFields.Add(birthDate);
        
object result = parser.AddSubscriberToList(subscriber, contactFields);

Contact fields for checkbox:

ContactFieldText weekdays = new ContactFieldText();
weekdays.fieldid = 52;
string[] value2 = new string[] { "Sat", "Sun" };
weekdays.fieldvalue = value2;
contactFields.Add(weekdays);

object result = parser.AddSubscriberToList(subscriber, contactFields);
Field structure:
Field structure

SubscriberObj subscriber = new SubscriberObj();
subscriber.emailaddress = "test@mail.net";
subscriber.listid = 79;
List<Dictionary<string, object>> otmValues = new List<Dictionary<string, object>>();
Dictionary<string, object> movie = new Dictionary<string, object>();
Dictionary<string, object>movies = new Dictionary<string, object>();
List<Dictionary<string, object>> actors = new List<Dictionary<string, object>>();
List<Dictionary<string, object>> premieres = new List<Dictionary<string, object>>();

Dictionary actor1 = new Dictionary();
actor1.Add("FirstName", "Rami");
actor1.Add("LastName", "malek");
actor1.Add("BirthDate", "12.05.1981");
actor1.Add("emp_trigger", 1);

Dictionary actor2 = new Dictionary();
actor2.Add("FirstName", "Lucy");
actor2.Add("LastName", "Boynton");
actor2.Add("BirthDate", "17.01.1994");
actor2.Add("emp_trigger", 1);

actors.Add(actor1);
actors.Add(actor2);

Dictionary premiere1 = new Dictionary();
premiere1.Add("Country", "Denmark");
premiere1.Add("Cinema", "Cineplexx");
premiere1.Add("PremiereDate", "21.11.2018");
premiere1.Add("emp_trigger", 1);

Dictionary premiere2 = new Dictionary();
premiere2.Add("Country", "Macedonia");
premiere2.Add("Cinema", "Cineplexx");
premiere2.Add("PremiereDate", "01.11.2018");
premiere2.Add("emp_trigger", 1);

premieres.Add(premiere1);
premieres.Add(premiere2);

movie.Add("Title", "Bohemian Rhapsody");
movie.Add("ReleaseDate", "02.11.2018");
movie.Add("Actors", actors);
movie.Add("Oscar", false);
movie.Add("Rating", 8.4);
movie.Add("Premiere", premieres);
movie.Add("emp_trigger", 1);

movies.Add("Movie",movie);
movies.Add("emp_trigger", 1);
movies.Add("fieldid",13);

otmValues.Add(movies);

object result = parser.AddSubscriberToList(subscriber, null, otmValues);

GetSubscribers

Get a List of Subscriber information based on search criteria.

Parametres:

GetSubscribers(searchinfo, countOnly, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribers?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&searchinfo=value&countonly=value&limit=value&offset=value"

Returns:

On success:

<List<SubscriberObj>>  List of Subscribers with respective information.
If countOnly specified:
<Integer> Number of Subscribers.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribers?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&searchinfo[List]=any&searchinfo[Status]=unconfirmed"

All subscribers:

Dictionary<string string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("Status", "all");
object result = parser.GetSubscribers(searchinfo);

All active subscribers:

object result = parser.GetSubscribers();

All unconfirmed subscribers in lists:

Dictionary<string string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("List", "any");
searchinfo.Add("Status", "unconfirmed");

object result = parser.GetSubscribers(searchinfo);

Count unsubscribed subscribers in list:

Dictionary<string string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("List", "19");
searchinfo.Add("Status", "unsubscribed");
bool countOnly = true;

object result = parser.GetSubscribers(searchinfo, countOnly);

Subscribers in specific list(s):

Dictionary<string string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("List", "12");

object result = parser.GetSubscribers(searchinfo);

Subscribers added today:

Dictionary<string string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("type", "after");
searchinfo.Add("StartDate", "today");

object result = parser.GetSubscribers(searchinfo);

Subscribers added in last 24 hours:

Dictionary<string, string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("type", "after");
searchinfo.Add("StartDate", "-24 hours");

object result = parser.GetSubscribers(searchinfo);

Subscribers added in last week [in last 7 days, not from Monday]:

Dictionary searchinfo = new Dictionary();
searchinfo.Add("type", "after");
searchinfo.Add("StartDate", "tomorrow -1 week");
	
object result = parser.GetSubscribers(searchinfo);

Subscribers added before specific date:

Dictionary<string, string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("type", "before");
searchinfo.Add("StartDate", "17-05-2016");

object result = parser.GetSubscribers(searchinfo);

Subscribers added on specific date:

Dictionary<string, string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("type", "exactly");
searchinfo.Add("StartDate", "19 May 2017");

object result = parser.GetSubscribers(searchinfo);

Subscribers added between 2 dates:

Dictionary<string, string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("type", "between");
searchinfo.Add("StartDate", "10 May 2017");
searchinfo.Add("EndDate", "20-May-2017");

object result = parser.GetSubscribers(searchinfo);

Subscribers in specific list(s) added today:

Dictionary<string, string> searchinfo = new Dictionary<string, string>();
searchinfo.Add("List", "12");
searchinfo.Add("type", "after");
searchinfo.Add("StartDate", "today");

object result = parser.GetSubscribers(searchinfo);

GetSubscribersByCustomField

Get a List of Subscriber information based on custom field.

Parametres:

GetSubscribersByCustomField(listid, data, activeОnly, countOnly, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribersByCustomField?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&data=value&activeonly&countonly=value&limit=value&offset=value"

Returns:

On success:

<Array>  array(List of Subscribers with respective information)
If countOnly specified:
<Integer> Number of Subscribers

On failure:

<Array> array(false, message)

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribersByCustomField?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=55&data[0][fieldid]=150&data[0][fieldvalue]=Name&data[0][operator]=OR&data[1][fieldid]=151&data[1][fieldvalue]=Last Name"
List<ContactFieldText> data = new List<ContactFieldText>();

int listid = 55;

ContactFieldText cont1 = new ContactFieldText();
cont1.fieldid = 150;
string[] value1 = new string[] { "Name" };
cont1.fieldvalue = value1;
cont1.rule = "OR";
data.Add(cont1);

ContactFieldText cont2 = new ContactFieldText();
cont2.fieldid = 151;
string[] value1 = new string[] { "Last Name" };
cont2.fieldvalue = value1;
data.Add(cont2);
        
object result = parser.GetSubscribersByCustomField(listid, data);
List<ContactFieldText> data = new List<ContactFieldText>();

int listid = 55;

ContactFieldText cont1 = new ContactFieldText();
cont1.fieldid = 150;
string[] value1 = new string[] { "05-07-2018" };
cont1.fieldvalue = value1;
cont1.rule = "AND";
cont1.searchType = "after";
data.Add(cont1);

ContactFieldText cont2 = new ContactFieldText();
cont2.fieldid = 150;
string[] value1 = new string[] { "05-12-2018" };
cont2.fieldvalue = value1;
cont2.searchType = "before";
data.Add(cont2);
        
object result = parser.GetSubscribersByCustomField(listid, data);
List<ContactFieldText> data = new List<ContactFieldText>();

int listid = 55;

ContactFieldText cont1 = new ContactFieldText();
cont1.fieldid = 152;
string[] value1 = new string[] { "Blue" };
cont1.fieldvalue = value1;
cont1.rule = "OR";
data.Add(cont1);

ContactFieldText cont2 = new ContactFieldText();
cont2.fieldid = 153;
string[] value1 = new string[] { "155" };
cont2.fieldvalue = value1;
data.Add(cont2);

int limit = 100;
bool activeОnly = true;
bool countOnly = false;
        
object result = parser.GetSubscribersByCustomField(listid, data, activeОnly, countOnly, limit);
List<ContactFieldText> data = new List<ContactFieldText>();

int listid = 55;

ContactFieldText cont1 = new ContactFieldText();
cont1.fieldid = 150;
string[] value1 = new string[] { "05-07-2018" };
cont1.fieldvalue = value1;
string[] value2 = new string[] { "20-08-2018" };
cont1.fieldvalue_end-date = value2;
cont1.searchType = "between";
data.Add(cont1);
        
object result = parser.GetSubscribersByCustomField(listid, data);

GetSubscriberDetails

Gets subscriber data including last events events and bounces.

Parametres:

GetSubscriberDetails(listid, subscriberid, emailaddress, mobile, mobilePrefix);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscriberDetails?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&subscriberid=value&emailaddress=value&mobile=value&mobile_prefix=value"

Returns:

On success:

<SubscriberObj> Subscriber details.

On failure:

<Array> {"false", message}

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscriberDetails?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&subscriberid=0&emailaddress=test@asp.net"
string emailaddress = "test@asp.net";
int listid = 12;

object result = parser.GetSubscriberDetails(listid, 0, emailaddress);
string mobile = "72589985"
string mobilePrefix = "389";
int listid = 12;

object result = parser.GetSubscriberDetails(listid, 0, "", mobile, mobilePrefix);
int listid = 12;
int subscriberid = 62;

object result = parser.GetSubscriberDetails(listid, subscriberid);

GetSubscriberEvents

Gets subscriber events.

Parametres:

GetSubscriberEvents(listid, subscriberid, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscriberEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&subscriberid=value&limit=value&offset=value"

Returns:

On success:

<EventObj> Subscriber events.

On failure:

<Array> {"false", message}

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscriberEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&subscriberid=62"
int listid = 12;
int subscriberid = 62;

object result = parser.GetSubscriberEvents(listid, subscriberid);
int listid = 12;
int subscriberid = 62;
int limit = 50;
int offset = 5;

object result = parser.GetSubscriberEvents(listid, subscriberid, limit, offset);

GetSubscribersUpdatedSince

Get a List of Subscribers updated after the specified date.

Parametres:

GetSubscribersUpdatedSince(date, listids, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribersUpdatedSince?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&date=value&listid=value&limit=value&offset=value"

Returns:

On success:

<Array> array(List of Subscribers with respective information)

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribersUpdatedSince?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&date=23.01.2018&listid=19&limit=10&offset=0"
string date = "23.01.2018";
int[] listids = new int[] {1, 2, 3};
int limit = 10;
int offset = 0;

object result = parser.GetSubscribersUpdatedSince(date, listids, limit, offset);

GetSubscribersFromSegment

Get a list of subscribers from segment.

Parametres:

GetSubscribersFromSegment(segmentid, countOnly, activeOnly, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribersFromSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=value&countonly=value&activeonly=value&limit=value&offset=value"

Returns:

On success:

<Array> array(List of Subscribers with respective information)

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribersFromSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=56"
int segmentid = 56;

object result = parser.GetSubscribersFromSegment(segmentid);
int segmentid = 56;
bool countOnly = true;

object result = parser.GetSubscribersFromSegment(segmentid,countOnly);
int segmentid = 56;
bool countOnly = false;
bool activeOnly = true;
int limit = 20;

object result = parser.GetSubscribersFromSegment(segmentid,countOnly,activeOnly,limit);

GetTriggers

Get a list of triggers for list or all triggers.

Parametres:

GetTriggers(listid, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Triggers/GetTriggers?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&limit=value&offset=value"

Returns:

On success:

<Array> array(List of triggers with respective information)

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Triggers/GetTriggers?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=56"
int listid = 56;

object result = parser.GetTriggers(listid);
int listid = 56;
int limit = 10;

object result = parser.GetTriggers(listid,limit);

GetTriggersForSegment

Get a list of triggers for segment.

Parametres:

GetTriggersForSegment(segmentid);
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetTriggersForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=value"

Returns:

On success:

<Array> array(List of triggers with respective information)

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetTriggersForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=56"
int segmentid = 56;

object result = parser.GetTriggersForSegment(segmentid);

GetSegments

Get a list of segments for list or all segments.

Parametres:

GetSegments(listid, countSubscribers, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetSegments?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&count_subscribers=value&limit=value&offset=value"

Returns:

On success:

<Array> array(List of segments with respective information)

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetSegments?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=56"
int listid = 56;

object result = parser.GetSegments(listid);
int listid = 56;
bool countSubscribers = true;
int limit = 10;

object result = parser.GetSegments(listid, countSubscribers, limit);

GetSegmentSummary

Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for Segment

Parametres:

GetSegmentSummary(segmentid, from, to);
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetSegmentSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=value&from=value&to=value"

Returns:

On success:

<StatsObj> Details about the Statistics entry.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetSegmentSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=56"
int segmentid = 56;

object result = parser.GetSegmentSummary(segmentid);
int segmentid = 56;
string from = "30-04-2018";

object result = parser.GetSegmentSummary(segmentid,from);
int segmentid = 56;
string to = "30-09-2018";

object result = parser.GetSegmentSummary(segmentid,"",to);

GetRulesForSegment

Get all rules for Segment

Parametres:

GetRulesForSegment(segmentid);
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetRulesForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=value"

Returns:

On success:

<List<RuleObj>> rules for segment

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetRulesForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=value"
int segmentid = 56;

object result = parser.GetRulesForSegment(segmentid);

UpdateSubscriber

Updates Subscriber information.

Parametres:

UpdateSubscriber(listid, subscriberid, emailaddress, mobile, mobilePrefix, contactFields);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UpdateSubscriber --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&subscriberid=value&emailaddress=value&mobile=value&mobilePrefix=value&customfields=value&otmValues=value"

Returns:

On success:

<Array> {true, "Subscriber has been updated"}

On failure:

<Array> {false, "Unable to query the database"}

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UpdateSubscriber --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=113&subscriberid=319&emailaddress=update@subscriber.net&mobile=70569358&mobilePrefix=389&customfields[0][fieldid]=11&customfields[0][value]=DNK&customfields[1][fieldid]=8&customfields[1][value]=Vejen&customfields[2][fieldid]=52&customfields[2][value][0]=Friday&customfields[2][value][1]=Sunday"
int listid = 113;
int subscriberid = 319;
string emailaddress = "update@subscriber.net";
string mobile = "70569358";
List<ContactFieldText> contactFields = new List<ContactFieldText>();

ContactFieldText city = new ContactFieldText();
city.fieldid = 8;
city.fieldvalue = "Vejen";
contactFields.Add(city);

ContactFieldText country = new ContactFieldText();
country.fieldid = 11;
country.fieldvalue = "DNK";
contactFields.Add(country);

weekdays.fieldid = 52;
string[] value2 = new string[] { "Friday", "Sunday" };
weekdays.fieldvalue = value2;
contactFields.Add(weekdays);

object result = parser.UpdateSubscriber(listid, subscriberid, emailaddress, mobile, contactFields);
Field structure:
Field structure

int lisdid = 12;
int subscriberid = 105;

List<Dictionary<string, object>> otmValues = new List<Dictionary<string, object>>();
Dictionary<string, object> movie = new Dictionary<string, object>();
Dictionary<string, object>movies = new Dictionary<string, object>();
List<Dictionary<string, object>> actors = new List<Dictionary<string, object>>();
List<Dictionary<string, object>> premieres = new List<Dictionary<string, object>>();

Dictionary actor1 = new Dictionary();
actor1.Add("FirstName", "Rami");
actor1.Add("LastName", "malek");
actor1.Add("BirthDate", "12.05.1981");
actor1.Add("emp_trigger", 1);

Dictionary actor2 = new Dictionary();
actor2.Add("FirstName", "Lucy");
actor2.Add("LastName", "Boynton");
actor2.Add("BirthDate", "17.01.1994");
actor2.Add("emp_trigger", 1);

actors.Add(actor1);
actors.Add(actor2);

Dictionary premiere1 = new Dictionary();
premiere1.Add("Country", "Denmark");
premiere1.Add("Cinema", "Cineplexx");
premiere1.Add("PremiereDate", "21.11.2018");
premiere1.Add("emp_trigger", 1);

Dictionary premiere2 = new Dictionary();
premiere2.Add("Country", "Macedonia");
premiere2.Add("Cinema", "Cineplexx");
premiere2.Add("PremiereDate", "01.11.2018");
premiere2.Add("emp_trigger", 1);

premieres.Add(premiere1);
premieres.Add(premiere2);

movie.Add("Title", "Bohemian Rhapsody");
movie.Add("ReleaseDate", "02.11.2018");
movie.Add("Actors", actors);
movie.Add("Oscar", false);
movie.Add("Rating", 8.4);
movie.Add("Premiere", premieres);
movie.Add("emp_trigger", 1);

movies.Add("Movie",movie);
movies.Add("emp_trigger", 1);
movies.Add("fieldid",13);

otmValues.Add(movies);

object result = parser.UpdateSubscriber(listid, subscriberid, false, false, null, otmValues);

RequestUpdateEmail

Request to change current email address.

Parametres:

RequestUpdateEmail(subscriberid, listid, currentEmail, newEmail, contactFields);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/RequestUpdateEmail --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value&listid=value&oldemail=value&newemail=value&contactFields=value"

Returns:

On success:

<Boolean> true

On failure:

<Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/RequestUpdateEmail --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=319&listid=113&oldemail=oldemail@requestupdate.net&newemail=newemail@requestupdate.net&contactFields[0][fieldid]=8&contactFields[0][value]=Skopje"
int subscriberid = 319;
int listid = 113;
string currentEmail = "currentemail@requestupdate.net";
string newEmail = "newemail@requestupdate.net";

List<ContactFieldText> contactFields = new List<ContactFieldText>();

ContactFieldText city = new ContactFieldText();
city.fieldid = 8;
city.fieldvalue = "Vejen";
contactFields.Add(city);

ContactFieldText country = new ContactFieldText();
country.fieldid = 11;
country.fieldvalue = "DNK";
contactFields.Add(country);

object result = parser.RequestUpdateEmail(subscriberid, listid, currentEmail, newEmail, contactFields);

ChangeMobile

Change subscriber mobile.

Parametres:

ChangeMobile(listid, subscriberid, mobile, mobilePrefix);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/ChangeMobile --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&subscriberid=value&mobile=value&mobilePrefix=value"

Returns:

On success:

<Array> {true, "Mobile Number has been changed"}

On failure:

<Array> {false, "Unable to query the database"}

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/ChangeMobile --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=113&subscriberid=319&mobile=70569358&mobilePrefix=389"
int listid = 113;
int subscriberid = 319;
string mobile = "70569358";

object result = parser.ChangeMobile(listid, subscriberid, mobile);
int listid = 113;
int subscriberid = 319;
string mobile = "70569358";
string mobilePrefix = "389";

object result = parser.ChangeMobile(listid, subscriberid, mobile, mobilePrefix);

SaveSubscriberCustomField

Saves contact field information for particular Subscriber, particular List and particular Field.

Parametres:

SaveSubscriberCustomField(subscriberid, contactField, skipEmptyData, otmValues);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/SaveSubscriberCustomField --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value&fieldid=value&value=value&skipEmptyData=value&otmValues=value"

Returns:

On success:

<Boolean> true

On failure:

<Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/SaveSubscriberCustomField --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=1&fieldid=8&fieldValue=Bergen&skipEmptyData=true&otmValues=true"
int subscriberid = 12; 
ContactFieldText contactField = new ContactFieldText();
contactField.fieldid = 7;
contactField.fieldValue = new string[] { "5-11-2018" }; 
bool skipEmptyData = true; //Default is false

object result = parser.SaveSubscriberCustomField(subscriberid, contactField, skipEmptyData);
Example for checkbox:
int subscriberid = 12; 
ContactFieldText contactField = new ContactFieldText();
contactField.fieldid = 52;
contactField.fieldValue = new string[] { "Monday", "Tuesday", "Friday" }; 
bool skipEmptyData = true; //Default is false
object result = parser.SaveSubscriberCustomField(subscriberid, contactField, skipEmptyData);
Field structure:
Field structure
int subscriberid = 12; 
bool skipEmptyData = true;

Dictionary<string, object> movie = new Dictionary<string, object>();
List<Dictionary<string, object>> actors = new List<Dictionary<string, object>>();
List<Dictionary<string, object>> premieres = new List<Dictionary<string, object>>();

Dictionary actor1 = new Dictionary();
actor1.Add("FirstName", "Rami");
actor1.Add("LastName", "malek");
actor1.Add("BirthDate", "12.05.1981");
actor1.Add("emp_trigger", 1);

Dictionary actor2 = new Dictionary();
actor2.Add("FirstName", "Lucy");
actor2.Add("LastName", "Boynton");
actor2.Add("BirthDate", "17.01.1994");
actor2.Add("emp_trigger", 1);

actors.Add(actor1);
actors.Add(actor2);

Dictionary premiere1 = new Dictionary();
premiere1.Add("Country", "Denmark");
premiere1.Add("Cinema", "Cineplexx");
premiere1.Add("PremiereDate", "21.11.2018");
premiere1.Add("emp_trigger", 1);

Dictionary premiere2 = new Dictionary();
premiere2.Add("Country", "Macedonia");
premiere2.Add("Cinema", "Cineplexx");
premiere2.Add("PremiereDate", "01.11.2018");
premiere2.Add("emp_trigger", 1);

premieres.Add(premiere1);
premieres.Add(premiere2);

movie.Add("Title", "Bohemian Rhapsody");
movie.Add("ReleaseDate", "02.11.2018");
movie.Add("Actors", actors);
movie.Add("Oscar", false);
movie.Add("Rating", 8.4);
movie.Add("Premiere", premieres);
movie.Add("emp_trigger", 1);

object result = parser.SaveSubscriberCustomField(subscriberid, null, skipEmptyData, movie);

AddToOTMDocument

Saves partial One-To-Many data for particular Subscriber

Parametres:

AddToOTMDocument(listid, subscriberid, emailaddress, mobile, mobilePrefix, fieldid, values, path);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/AddToOTMDocument --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&subscriberid=value&emailaddress=value&mobile=value&mobilePrefix=value&fieldid=value&values=value&path=value"

Returns:

On success:

<Boolean> true

On failure:

<Array> array(false, "Message")

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/AddToOTMDocument --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=1&subscriberid=1&emailaddress=false&mobile=false&mobilePrefix=false&fieldid=18&path=Bergen&values[FirstName]=FirstName&values[LastName]=LastName&values[BirthDate]=30.11.2018&"

Field structure:
Field structure

Add new Actor into first movie.

int listid = 1;
int subscriberid = 1;
int fieldid = 18;
string path = "Movie[0].Actors";

Dictionary<string, object> actor = new Dictionary<string, object>();
actor.Add("FirstName", "First Name");
actor.Add("LastName", "Last Name");
actor.Add("BirthDate", "30.11.2018");
actor.Add("emp_trigger", 1);

object result = parser.AddToOTMDocument(listid, subscriberid, "", "", "", fieldid, actor, path);

Add new Premiere into second movie.

int listid = 1;
string emailaddress = "test@dev.com";
int fieldid = 18;
string path = "Movie[1].Premiere";

Dictionary<string, object> premiere = new Dictionary<string, object>();
premiere.Add("Country", "Denmark");
premiere.Add("Cinema", "Cineplexx");
premiere.Add("PremiereDate", "30.11.2018");
premiere.Add("emp_trigger", 1);

object result = parser.AddToOTMDocument(listid, 0, emailaddress, "", "", fieldid, premiere, path);

Add new Movie.

int listid = 1;
string mobile = "20121212";
string mobilePrefix = "45";
int fieldid = 18;
string path = "Movie";

Dictionary<string, object> movie = new Dictionary<string, object>();
List<Dictionary<string, object>> actors = new List<Dictionary<string, object>>();
List<Dictionary<string, object>> premieres = new List<Dictionary<string, object>>();

Dictionary actor1 = new Dictionary();
actor1.Add("FirstName", "Rami");
actor1.Add("LastName", "malek");
actor1.Add("BirthDate", "12.05.1981");
actor1.Add("emp_trigger", 1);

Dictionary actor2 = new Dictionary();
actor2.Add("FirstName", "Lucy");
actor2.Add("LastName", "Boynton");
actor2.Add("BirthDate", "17.01.1994");
actor2.Add("emp_trigger", 1);

actors.Add(actor1);
actors.Add(actor2);

Dictionary premiere1 = new Dictionary();
premiere1.Add("Country", "Denmark");
premiere1.Add("Cinema", "Cineplexx");
premiere1.Add("PremiereDate", "21.11.2018");
premiere1.Add("emp_trigger", 1);

Dictionary premiere2 = new Dictionary();
premiere2.Add("Country", "Macedonia");
premiere2.Add("Cinema", "Cineplexx");
premiere2.Add("PremiereDate", "01.11.2018");
premiere2.Add("emp_trigger", 1);

premieres.Add(premiere1);
premieres.Add(premiere2);

movie.Add("Title", "Bohemian Rhapsody");
movie.Add("ReleaseDate", "02.11.2018");
movie.Add("Actors", actors);
movie.Add("Oscar", false);
movie.Add("Rating", 8.4);
movie.Add("Premiere", premieres);
movie.Add("emp_trigger", 1);

object result = parser.AddToOTMDocument(listid, 0, "", mobile, mobilePrefix, fieldid, movie, path);

ResubscribeContact

Resubscribe subscriber if subscribed is deleted.

Parametres:

ResubscribeContact(listid, emailaddress, mobile, mobilePrefix, addToAutoresponders, contactFields, otmValues);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/ResubscribeContact --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&emailaddress=value&mobileNumber=value&mobilePrefix=value&add_to_autoresponders=value&contactFields=value&otmValues=value"

Returns:

On success:

<String> message

On failure:

<String> message

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/ResubscribeContact --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=23&emailaddress=test@dev.com"
int listid = 12; 
String emailaddress = "test@dev.com";

object result = parser.ResubscribeContact(listid, emailaddress);
int listid = 12; 
String mobile = "20123456";
String mobilePrefix = "45";

object result = parser.ResubscribeContact(listid, "", mobile, mobilePrefix);
Field structure:
Field structure

int listid = 12; 
String mobile = "20123456";
String mobilePrefix = "45";

List<Dictionary<string, object>> otmValues = new List<Dictionary<string, object>>();
Dictionary<string, object> movie = new Dictionary<string, object>();
Dictionary<string, object>movies = new Dictionary<string, object>();
List<Dictionary<string, object>> actors = new List<Dictionary<string, object>>();
List<Dictionary<string, object>> premieres = new List<Dictionary<string, object>>();

Dictionary actor1 = new Dictionary();
actor1.Add("FirstName", "Rami");
actor1.Add("LastName", "malek");
actor1.Add("BirthDate", "12.05.1981");
actor1.Add("emp_trigger", 1);

Dictionary actor2 = new Dictionary();
actor2.Add("FirstName", "Lucy");
actor2.Add("LastName", "Boynton");
actor2.Add("BirthDate", "17.01.1994");
actor2.Add("emp_trigger", 1);

actors.Add(actor1);
actors.Add(actor2);

Dictionary premiere1 = new Dictionary();
premiere1.Add("Country", "Denmark");
premiere1.Add("Cinema", "Cineplexx");
premiere1.Add("PremiereDate", "21.11.2018");
premiere1.Add("emp_trigger", 1);

Dictionary premiere2 = new Dictionary();
premiere2.Add("Country", "Macedonia");
premiere2.Add("Cinema", "Cineplexx");
premiere2.Add("PremiereDate", "01.11.2018");
premiere2.Add("emp_trigger", 1);

premieres.Add(premiere1);
premieres.Add(premiere2);

movie.Add("Title", "Bohemian Rhapsody");
movie.Add("ReleaseDate", "02.11.2018");
movie.Add("Actors", actors);
movie.Add("Oscar", false);
movie.Add("Rating", 8.4);
movie.Add("Premiere", premieres);
movie.Add("emp_trigger", 1);

movies.Add("Movie",movie);
movies.Add("emp_trigger", 1);
movies.Add("fieldid",13);

otmValues.Add(movies);

object result = parser.ResubscribeContact(listid, "", mobile, mobilePrefix,false,null,otmValues);

int listid = 12; 
String mobile = "20123456";
String mobilePrefix = "45";

List<ContactFieldText> contactFields = new List<ContactFieldText>();

ContactFieldText title = new ContactFieldText();
title.fieldid = 1;
string[] valueTitle = new string[] { "Mr" };
title.fieldvalue = valueTitle;
contactFields.Add(title);

ContactFieldText city = new ContactFieldText();
city.fieldid = 8;
string[] valueCity = new string[] { "Kumanovo" };
city.fieldvalue = valueCity;
contactFields.Add(city);

object result = parser.ResubscribeContact(listid, "", mobile, mobilePrefix,false,contactFields);

IsSubscriberOnList

Checks whether a Subscriber is on a particular List based on their Email Address or subscriberid and whether you are checking only for active Subscribers.

Parametres:

IsSubscriberOnList(listsids, emailaddress, mobile, mobilePrefix, subscriberid, activeOnly, notBounced, returnListid);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/IsSubscriberOnList?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listids=value&emailaddress=value&mobile=value&mobilePrefix=value&subscriberid=value&activeonly=value¬_bounced=value&return_listid=value"

Returns:

On success:

<List<SubscriberObj>> Subscriber

On failure:

<Array> empty

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/IsSubscriberOnList?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listids[0]=1&listids[1]=2&listids[2]=3&emailaddress=test@asp.net&mobile=72123456&mobilePrefix=389&subscriberid=22&activeonly=false¬_bounced=false&return_listid=false"
int[] listids = new int[] { 1, 2, 3 }; 
string emailaddress = "test@asp.net"; 
string mobile = "72123456" ;
string mobilePrefix = "389";
int subscriberid = 22;
bool activeOnly = false;
bool notBounced = false;
bool returnListid = false;

object result = parser.IsSubscriberOnList(listids, emailaddress, mobile, mobilePrefix, subscriberid, activeOnly, notBounced, returnListid);

IsUnSubscriber

Checks whether an email address is an 'unsubscriber'.

Parametres:

IsUnsubscriber(listid, emailaddress, mobile, mobilePrefix, subscriberid, service)
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/IsUnSubscriber?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&emailaddress=value&mobile=value&mobilePrefix=value&subscriberid=value&service=value"

Returns:

On success:

<Integer> Subscriber ID

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/IsUnSubscriber?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&emailaddress=test@asp.net&mobile=&mobilePrefix=&subscriberid=22&service=email"
int listid = 12;   
string emailaddress = "test@asp.net";
string mobile = "";
string mobilePrefix;
int subscriberid = 22;
string service = "email"; // or "smscampaign"/"sms"; 

object result = parser.IsUnSubscriber(listid, emailaddress, mobile, mobilePrefix, subscriberid, service);

UnsubscribeSubscriberEmail

Unsubscribes an Email Address from a specific List.

Parametres:

UnsubscribeSubscriberEmail(listid, emailaddress, subscriberid, skipCheck, statid);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UnsubscribeSubscriberEmail --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&emailaddress=value&subscriberid=value&skipcheck=value&statid=value"

Returns:

On success:

<Boolean> true

On failure:

<Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UnsubscribeSubscriberEmail --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&emailaddress=test@mail.net"
int listid = 12;
string emailaddress = "test@mail.net";

object result = parser.UnsubscribeSubscriberEmail(listid, emailaddress);
int subscriberid = 267;

object result = parser.UnsubscribeSubscriberEmail(listid, "", subscriberid);
string emailaddress = "test@mail.net";
int listid = 12;
bool skipCheck = false;
int statid = 32;

object result = parser.UnsubscribeSubscriberEmail(listid, emailaddress, 0, skipCheck, statid);

UnsubscribeSubsriberMobile

UUnsubscribes an Email Address from a specific List.

Parametres:

UnsubscribeSubscriberMobile(listid, mobile, mobilePrefix, subscriberid, skipCheck, statid);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UnsubscribeSubscriberMobile --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&mobile=value&mobilePrefix=value&subscriberid=value&skipcheck=value&statid=value"

Returns:

On success:

<Boolean> true

On failure:

<Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UnsubscribeSubscriberMobile --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&mobile=72445865&mobilePrefix=389&subscriberid=value"
int listid = 12;
string mobile = "72445865";
string mobilePrefix = "389";

object result = parser.UnsubscribeSubscriberMobile(listid, mobile, mobilePrefix);
int listid = 12;
int subscriberid = 267;

object result = parser.UnsubscribeSubscriberMobile(listid, "", "", subscriberid);
string mobile = "72445865";
string mobilePrefix = "389";
int listid = 12;
bool skipCheck = false;
int statid = 32;

object result = parser.UnsubscribeSubscriberMobile(listid, mobile, mobilePrefix, 0, skipCheck, statid);

GetAllListForEmailAddress

Gets all subscriberids, listids for a particular email address and returns an array of them.

Parametres:

GetAllListsForEmailAddress(emailaddress, listids, mainListid, activeOnly, includeDeleted);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetAllListsForEmailAddress?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&emailaddress=value&listids=value&main_listid=value&activeonly=value&include_deleted=value"

Returns:

On success:

<List<ListObj>> Objcets of ListObj.

On failure:

<Array> Empty.

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetAllListsForEmailAddress?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&emailaddress=test@mail.net&listids[0]=1&listids[1]=2&listids[2]=3"
string emailaddress = "test@mail.net";
init[] listids = new int[] { 1, 2, 3 };

object result = parser.GetAllListsForEmailAddress(emailaddress,listids);
string emailaddress = "test@mail.net";
int[] listids = new int { 1, 2, 3 };
int mainListid = 2;
bool activeOnly = true;
bool deleted = false;

object result = parser.GetAllListsForEmailAddress(emailaddress, listids, mainListid, activeOnly, deleted);

DeleteSubscriber

Deletes a Subscriber and their information from a specific List.

Parametres:

DeleteSubscriber(listid, emailaddress, mobile, mobilePrefix, subscriberid);
$ http DELETE "https://api.mailmailmail.net/v1.1/Subscribers/DeleteSubscriber' -d 'Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&emailaddress=value&mobile=value&mobilePrefix=value&subscriberid=value"

Returns:

On success:

<Boolean> true

On failure:

<Array> {false, message}

Examples:

$ http DELETE "https://api.mailmailmail.net/v1.1/Subscribers/DeleteSubscriber' -d 'Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&emailaddress=test@asp.net&mobile=70123456&mobilePrefix=389&subscriberid=22"
int listid = 12;
string emailaddress = "test@asp.net";
string mobile = "70123456";
string mobilePrefix = "389";
int subscriberid = 22;

object result = parser.DeleteSubscriber(listid, emailaddress, mobile, mobilePrefix, subscriberid);

FetchStats

Fetches the details of a Newsletter or Autoresponder statistics entry.

Parametres:

FetchStats(statid, statsType);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/FetchStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=value&statstype=value"

Returns:

On success:

 <StatsObj> Details about the Statistics entry.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/FetchStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=11&statstype=newsletter"
int statid = 11;
string statsType = "newsletter";

object result = parser.FetchStats(statid, statsType);

GetStatids

Get all statids.

Parametres:

GetStatids(listid, segmentid, newsletterid, from, to, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetStatids?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&segmentid=value&campaignid=value&from=value&to=value&limit=value&offset=value"

Returns:

On success:

 <StatsObj> Array of statids.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetStatids?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=11"
int listid = 11;

object result = parser.GetStatids(listid);
int listid = 11;
string from = "10-01-2019";

object result = parser.GetStatids(listid, 0, 0, from);
int listid = 11;
string from = "10-01-2019";
int newsletterid = 102;
int limit = 50;

object result = parser.GetStatids(listid, 0, newsletterid, from, "", limit);

GetListSummary

Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for a List.

Parametres:

GetListSummary(listid, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/FetchStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&limit=value&offset=value"

Returns:

On success:

 <StatsObj> Details about the Statistics entry.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/FetchStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=11"
int listid = 11;

object result = parser.GetListSummary(listid);
int listid = 11;
int limit = 30;

object result = parser.GetListSummary(listid, limit);
int listid = 11;
int limit = 30;
int offset = 5;

object result = parser.GetListSummary(listid, limit, offset);

GetBouncesByList

Fetches a List of Bounced Emails.

Parametres:

GetBouncesByList(listid, countOnly, bounceType, searchType, searchStartDate, searchEndDate);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetBouncesByList?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&count_only=value&bounce_type=value&searchType=value&searchStartDate=value&searchEndDate=value"

Returns:

On success:

<List<StatsObj>> List of bounces

For count only:
<Integer> Number of bounces

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetBouncesByList?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=11&count_only=false&bounce_type=any&searchType=between&searchStartDate=24-05-2017&searchEndDate=01.06.2017"
int listid = 11;
bool countOnly = false;
string bounceType = "any";
string searchType = "between";
string searchStartDate = "24-05-2017";
string searchEndDate = "01.06.2017";

object result = parser.GetBouncesByList(listid, countOnly, bounceType, searchType, searchStartDate, searchEndDate);
int listid = 11;
bool countOnly = true;

object result = parser.GetBouncesByList(listid, countOnly);

GetUnsubscribesByList

Fetches a List of Subscribers who Unsubscribed from a Campaign.

Parametres:

GetunsubscribesByList(listid, countOnly, searchType, searchStartDate, searchEndDate);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetUnsubscribesByList?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&count_only=value&searchType=value&searchStartDate=value&searchEndDate=value"

Returns:

On success:

<List<StatsObj>> List of unsubscribed contacts

For count only:
<Integer> Number of unsubscribed contacts

On failure:

 <Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetUnsubscribesByList?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=11&count_only=true&searchType=between&searchStartDate=24-05-2017&searchEndDate=01.06.2017"
int listid = 12;
bool countOnly = true;
string searchType = "between";
string searchStartDate = "24-05-2017";
string searchEndDate = "01.06.2017";

object result = parser.GetUnsubscribesByList(listid, countOnly, searchType, searchStartDate, searchEndDate);

GetOpens

Return the openers of email campaign.

Parametres:

GetOpens(statid, countOnly, uniqueOnly);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetOpens?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=value&count_only=value&only_unique=value"

Returns:

On success:

<List<StatsObj>> Returns List of StatsObj.

For count only:
<Integer> Total number of opens.

On failure:

<Array> Empty array.

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetOpens?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=11"
int statid = 11;

object result = parser.GetOpens(statid);

Counts the number of opens:

int statid = 11;
bool countOnly = true;email

object result = parser.GetOpens(statid, countOnly);

Counts the number of unique opens:

int statid = 11;
bool countOnly = true;
bool uniqueOnly = true;

object result = parser.GetOpens(statid, countOnly, uniqueOnly);

Details for unique opens:

int statid = 11;
int countOnly = false;
int uniqueOnly = true;

object result = parser.GetOpens(statid, countOnly, uniqueOnly);

GetRecipients

Return the Recipients of Autoresponder.

Parametres:

GetRecipients(statid, countOnly);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetRecipients?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=value&count_only=value"

Returns:

On success:

<List<StatsObj>> List of Recipients.

For count only:
<Integer> Total number of Recipients.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetRecipients?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=11"
int statid = 11;

object result = parser.GetRecipients(statid);

Counts the number of Recipients:

int statid = 11;
bool countOnly = true;

object result =parser.GetRecipients(statid, countOnly);

GetLatestStats

Get latest newsletter statistics.

Parametres:

GetLatestStats(newsletterid, limit);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetLatestStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&limit=value"

Returns:

On success:

<Array> Newsletter statistic.

On failure:

<Boolean> false.

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetLatestStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=11"
int newsletterid = 11;

object result = parser.GetRecipients(newsletterid);
int newsletterid = 11;
int limit = 50;

object result = parser.GetRecipients(newsletterid, limit);

ScheduleSendNewsletter

Schedule newsletter campaign for sending.

Parametres:

ScheduleSendNewsletter(campaignid, timeToSend);
$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&hours=value"

Returns:

On success:

<Array> {true, "Campaign has be scheduled"}

On failure:

<Array> {false, message}

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=30&hours=1"
int campaignid = 30;
float timeToSend = 1; //Time in hours, 0.5 = 30 minutes

object result = parser.ScheduleSendNewsletter(campaignid, timeToSend);

ScheduleSendSMS

Schedule SMS campaign for sending.

Parametres:

ScheduleSendSMS(campaignid, listsToSend, timeToSend);
$ http POST https://api.mailmailmail.net/v1.1/SMSSends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&lists=value&hours=value"

Returns:

On success:

<Array> {true, "Campaign has be scheduled"}

On failure:

 <Array> {false, message}

Examples:

$ http POST https://api.mailmailmail.net/v1.1/SMSSends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=30&lists[0]=1&lists[1]=2&lists[2]=3&hours=1"
int campaignid = 30;
float timeToSend = 1; //Time in hours, 0.5 = 30 minutes
int[] listsToSend = new int[] { 1, 2, 3 };

object result = parser.ScheduleSendSMS(campaignid, listsToSend, timeToSend);

SendNewsletter

Attempts to send a newsletter to specific subscriber or seeks for subscriber with given email address.

Parametres:

SendNewsletter(newsletterid, subscriberid, emailaddress, senderEmail, senderName, replyEmail);
$ http POST https://api.mailmailmail.net/v1.1/Messaging/SendNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=value&subscriberid=value&email=value&fromaddress=value&fromname=value&replyaddress=value"

Returns:

On success:

<Array> (true, message)

On failure:

<Array> (false, message)

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Messaging/SendNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=56&subscriberid=21"
int newsletterid = 56;
int subscriberid = 21;

object responce = parser.SendNewsletter(newsletterid, subscriberid);
int newsletterid = 47;
string emailaddress = "test@mail.net";

object responce = parser.SendNewsletter(newsletterid, false, emailaddress);

SendSMS

Attempts to send a sms to specific subscriber or seeks for subscriber with given mobile number

Parametres:

SendSMS(campaignid, smsSubject, textMessage, subscriberid, listid, mobile, mobilePrefix);
$ http POST https://api.mailmailmail.net/v1.1/SMS/Send --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&subject=value&text=value&subscriberid=value&listid=value&mobile=value&mobilePrefix=value"

Returns:

On success:

<Array> (true, message)

On failure:

<Array> (false, message)

Examples:

$ http POST https://api.mailmailmail.net/v1.1/SMS/Send --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=false&subject=Subject&text=text&subscriberid=65"
string smsSubject = "Subject";
string textMessage = "text";
int subscriberid = 65;

object responce = parser.SendSMS(0, smsSubject, textMessage, subscriberid, 0, "", "");
string smsSubject = "Subject";
string textMessage = "text";
int listid = 61;
string mobile = "78368994";
string mobilePrefix = "389";

object responce = parser.SendSMS(0, smsSubject, textMessage, 0, listid, mobile, mobilePrefix);
int campaignid = 23;
int listid = 61;
string mobile = "78368994";
string mobilePrefix = "389";

object responce = parser.SendSMS(campaignid, "", "", 0, listid, mobile, mobilePrefix);

GetSnapshots

Get snapshot links for sent campaign, trigger and autoresponder

Parametres:

GetSnapshots(subscriberid, triggerid, autoresponderid,newsletterid, groupBy)
$ http POST https://api.mailmailmail.net/v1.1/Stats/GetSnapshots --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value&triggerid=value&autoresponderid=value&newsletterid=value&groupby=value"

Returns:

On success:

<SnapshotObj> List of snapshots

On failure:

<Array> (false, message)

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Stats/GetSnapshots --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=65"
int subscriberid = 65;

object responce = parser.GetSnapshots(subscriberid);
int subscriberid = 65;
int newsletterid = 120;

object responce = parser.GetSnapshots(subscriberid, 0, 0, newsletterid);
int subscriberid = 65;
int newsletterid = 120;
string groupBy = "type";

object responce = parser.GetSnapshots(subscriberid, 0, 0, newsletterid, groupBy);

GetNewsletters

Get a List of Newsletters based on the criteria passed in.

Parametres:

GetNewsletters(countOnly, getLastSendDetails, content, afterCreateDate, newsletterNameLike, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Newsletters/GetNewsletters?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&countOnly=value&getLastSentDetails=value&content=value&afterCreateDate=value&newsletterNameLike=value&limit=value&offset=value"

Returns:

On success:

 <List> List of Newsletters.
For CountOnly:
 <Integer> Number of Newsletters.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Newsletters/GetNewsletters?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&countOnly=false&getLastSentDetails=true&content=false&afterCreateDate=28-05-2017"

Get all newsletters:

object result = parser.GetNewsletters();

Count newsletters:

bool countOnly = false;

object = parser.GetNewsletters(countOnly);

Get newsletters created after 28 May 2017:

bool countOnly = false;
bool getLastSendDetails = true;
bool content = false;
string afterCreateDate = "28 May 2017"; // (28-05-2017; 28-May-2017)

object result = parser.GetNewsletters(countOnly, getLastSendDetails, content, afterCreateDate);

Count newsletters created after 28 May 2017:

bool countOnly = false;
bool getLastSendDetails = true;
bool content = false;
string afterCreateDate = "28 May 2017"; // (28-05-2017; 28-May-2017)

object result =parser.GetNewsletters(countOnly, getLastSendDetails, content, afterCreateDate);

Get newsletters with name "Newsletter 12":

string newsletterNameLike = "Newsletter 12";

object result = parser.GetNewsletters false, true, true, false,newsletterNameLike);

Get newsletters with limit and offset:

int limit = 20;
int offset = 5;

object result = parser.GetNewsletters false, true, true, false, false, limit, offset);

GetNewsletterSummary

Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens and Link Clicks for Newsletter

Parametres:

GetNewsletterSummary(newsletterid, statid, from, to);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetNewsletterSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=value&statid=value&from=value&to=value"

Returns:

On success:

<StatsObj> Details about the Statistics entry.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetNewsletterSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=56"
int newsletterid = 56;

object result = parser.GetNewsletterSummary(newsletterid);
int newsletterid = 56;
string from = "30-04-2018";

object result = parser.GetNewsletterSummary(newsletterid, 0, from);
int newsletterid = 56;
string to = "30-09-2018";

object result = parser.GetNewsletterSummary(newsletterid, 0, "", to);

ViewNewsletter

View newsletter data.

Parametres:

ViewNewsletter(newsletterid);
$ http GET "https://api.mailmailmail.net/v1.1/Newsletters/ViewNewsletter?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=value"

Returns:

On success:

<Array> Newsletter details.

On failure:

<Array> array(false, message)

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Newsletters/ViewNewsletter?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=12"
int newsletterid = 12; 

object result = parser.ViewNewsletter(newsletterid);

EditNewsletter

Change newsletter name and subject

Parametres:

EditNewsletter(newsletterid, newsletterName, newsletterSubject);
$ http POST https://api.mailmailmail.net/v1.1/Newsletters/EditNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=value&name=value&subject=value"

Returns:

On success:

 <Boolean> true

On failure:

 <Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Newsletters/EditNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=15&name=Newsletter"
int newsletterid = 15;
string newsletterName = "Newsletter";

object result = parser.EditNewsletter(newsletterid, newsletterName);
int newsletterid = 15;
string newsletterName = "Newsletter";
string newsletterSubject = "Subject";

object result = parser.EditNewsletter(newsletterid, newsletterName, newsletterSubject);

CopyNewsletter

Copy a newsletter along with attachments, images etc.

Parametres:

CopyNewsletter(newsletterid, newsletterName, newsletterSubject);
$ http POST https://api.mailmailmail.net/v1.1/Newsletters/CopyNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&oldid=value&name=value&subject=value"

Returns:

On success:

 <Array> {true, "new id"}

On failure:

 <Array> {false, false}

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Newsletters/CopyNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&oldid=15&name=Newsletter"
int newsletterid = 15;
string newsletterName = "Newsletter";
object result = parser.CopyNewsletter(newsletterid, newsletterName);
int newsletterid = 23;
object result = parser.CopyNewsletter(newsletterid);
int newsletterid = 23;
string newsletterName = "Newsletter";
string newsletterSubject = "Subject";
object result = parser.CopyNewsletter(newsletterid, newsletterName, newsletterSubject);

GetTriggerSummary

Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for Trigger

Parametres:

GetTriggerSummary(triggerid, from, to);
$ http GET "https://api.mailmailmail.net/v1.1/Triggers/GetTriggerSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&triggerid=value&from=value&to=value"

Returns:

On success:

<StatsObj> Details about the Statistics entry.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Triggers/GetTriggerSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&triggerid=56&from=30-05-2017"
int triggerid = 56;

object result = parser.GetTriggerSummary(triggerid);
int triggerid = 56;
string from = "30-04-2018";

object result = parser.GetTriggerSummary(triggerid,from);
int triggerid = 56;
string to = "30-09-2018";

object result = parser.GetTriggerSummary(triggerid,"",to);

SetTriggerStatus

Activate/Deactivate Trigger.

Parametres:

SetTriggerStatus(triggerid, status);
$ http POST https://api.mailmailmail.net/v1.1/Triggers/SetTriggerStatus --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&triggerid=value&status=value"

Returns:

On success:

 <Boolean> true

On failure:

 <Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Triggers/SetTriggerStatus --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&triggerid=15&status=true"
int triggerid = 15;
bool status = true;
object result = parser.SetTriggerStatus(triggerid, status);
int triggerid = 15;
bool status = false;
object result = parser.SetTriggerStatus(triggerid, status);

GetAutoresponderSummary

Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for Autoresponder

Parametres:

GetAutoresponderSummary(autoresponderid, from, to);
$ http GET "https://api.mailmailmail.net/v1.1/Autoresponders/GetAutoresponderSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&autoresponderid=value&from=value&to=value"

Returns:

On success:

<StatsObj> Details about the Statistics entry.

On failure:

<Boolean> false

Examples:

$ http GET "https://api.mailmailmail.net/v1.1/Autoresponders/GetAutoresponderSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&autoresponderid=56&from=30-05-2017"
int autoresponderid = 56;

object result = parser.GetAutoresponderSummary(autoresponderid);
int autoresponderid = 56;
string from = "30-04-2018";

object result = parser.GetAutoresponderSummary(autoresponderid,from);
int autoresponderid = 56;
string to = "30-09-2018";

object result = parser.GetAutoresponderSummary(autoresponderid,"",to);

SetAutoresponderStatus

Activate/Deactivate Autoresponder.

Parametres:

SetAutoresponderStatus(autoresponderid, status);
$ http POST https://api.mailmailmail.net/v1.1/Autoresponders/SetAutoresponderStatus --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&autoresponderid=value&status=value"

Returns:

On success:

 <Boolean> true

On failure:

 <Boolean> false

Examples:

$ http POST https://api.mailmailmail.net/v1.1/Autoresponders/SetAutoresponderStatus --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&autoresponderid=15&status=true"
int autoresponderid = 15;
bool status = true;
object result = parser.SetAutoresponderStatus(autoresponderid, status);
int autoresponderid = 15;
bool status = false;
object result = parser.SetAutoresponderStatus(autoresponderid, status);