Calls up all the Lists that this user either owns or has access to.
This method does not have any parameters.
On success:
<Array> Lists details
On failure:
<Boolean> false
$ http GET "https://api.mailmailmail.net/v1.1/Users/GetLists?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN"
$parser→GetLists();
This method creates a List based on current class variables.
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&contactFields=value"
<Integer> listid
$ 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&contactFields[0]=1&$contactFields[1]=2"
$listName = "List name"; $descriptiveName = "List description"; $mobilePrefix = "389"; $contactFields = array(1, 2); $result = $parser→CreateList($listName, $descriptiveName, $mobilePrefix, $contactFields);
This method add custom fields to specific list.
AddCustomFieldsToList(listid, customFields)
$ http POST https://api.mailmailmail.net/v1.1/Lists/AddCustomFieldsToList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&customFields=value"
<Array> (true, message)
<Array> (false, message)
$ http POST https://api.mailmailmail.net/v1.1/Lists/AddCustomFieldsToList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=156&customFields[0]=1&customFields[1]=2"
$listid = 12; $customFields = array(1, 2); $result = $parser→AddCustomFieldsToList($listid, $customFields);
Updates a current List based on the current class variables.
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"
<Boolean> true
$ 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"
$listid = 12; $listName = "List new name"; $descriptiveName = "New Description"; $parser->UpdateList($listid, $listName, $descriptiveName);
Copy List details including contact fields.
CopyList(listid);
$ http POST https://api.mailmailmail.net/v1.1/Lists/CopyList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value"
<Integer> new id
<Array> array(false, message)
$ http POST https://api.mailmailmail.net/v1.1/Lists/CopyList --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12"
$listid = 12; $result = $parser->CopyList($listid);
Delete a List from the database.
DeleteList(listid);
$ http DELETE 'https://api.mailmailmail.net/v1.1/Lists/DeleteList' -d 'listid=value&Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN'
<String> message
$ http DELETE 'https://api.mailmailmail.net/v1.1/Lists/DeleteList' -d 'listid=12&Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN'
$listid = 12; $result = $parser→DeleteList($listid);
Create new custom field.
CreateCustomField(fieldName, fieldType, fieldSettings, 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"
<Integer> Return id of new custom field.
$ 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[FieldLength]=500&fieldsettings[MaxLength]=502&fieldsettings[MinLength]=10"
$fieldName = "Text field"; $fieldType = "text"; $fieldSettings = array( 'FieldLength' => 500, 'MaxLength' => 502, 'MinLength' => 10 ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings);
$fieldName = "Text Area"; $fieldType = "textarea"; $listids = array(41,89); $fieldSettings = array( 'Rows' => 50, 'Columns' => 10 ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings, $listids);
$fieldName = "Number"; $fieldType = "number"; $listids = array(50); $fieldSettings = array( 'FieldLength' => 500, 'MaxLength' => 502, 'MinLength' => 10 ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings, $listids);
$fieldName = "Gender"; $fieldType = "radiobutton"; $fieldSettings = array( 'Key' => array( 'male','female' ), 'Value' => array( 'male','female' ) ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings);
$fieldName = "Countries"; $fieldType = "dropdown"; $fieldSettings = array( 'Key' => array( 'MK','DK' ), 'Value' => array( 'Macedonia','Denmark' ) ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings);
$fieldName = "Colors"; $fieldType = "checkbox"; $fieldSettings = array( 'Key' => array( 'green','blue' ), 'Value' => array( 'green','blue' ) ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings);
$fieldName = "Birth date"; $fieldType = "date"; $fieldSettings = array ( 'format_1' => 'day', 'format_2' => 'month', 'format_3' => 'year' ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings);
$fieldName = "Birth date"; $fieldType = "date"; $result = $parser→CreateCustomField($fieldName, $fieldType);
$fieldName = "Birth date"; $fieldType = "date"; $fieldSettings = array ( 'format_1' => 'month', 'format_2' => 'day', 'format_3' => 'year', 'start_year' => 2012, 'end_year' => 2087 ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings);
$fieldName = "Birth date"; $fieldType = "date"; $fieldSettings = array ( 'format_1' => 'year', 'format_2' => 'month', 'format_3' => 'day', ); $result = $parser→CreateCustomField($fieldName, $fieldType, $fieldSettings);
Loads up the customfield and sets the appropriate class variables.
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"
<Array> Returns custom field.
<Boolean> false.
$ http GET "https://api.mailmailmail.net/v1.1/CustomFields/LoadCustomField?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&fieldid=12"
$fieldid = 12; $result = $parser→LoadCustomField($fieldid);
Fetches Contact Fields for the specified List.
GetCustomFields(listids);
$ http GET "https://api.mailmailmail.net/v1.1/Lists/GetCustomFields?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listids=value"
<Array> Returns the List of Contact Fields.
<Array> Empty array.
$ 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"
$listids = array(1, 2, 3); $result = $parser→GetCustomFields($listids);
Get sample data for OtM field.
GetSampleDataForOTM(fieldid);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSampleDataForOTM?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&fieldid=value"
<Array> Returns sample data.
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSampleDataForOTM?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&fieldid=78"
$fieldid = 78; $result = $parser→GetSampleDataForOTM($fieldid);
This method adds subscriber to contact List. Please note that adding a profile that is already on a list as an unsubscribed will result in sending out a confirmation email.
AddSubscriberToList(listid, emailaddress, mobile, mobilePrefix, contactFields, addToAutoresponders, skipListCheck, confirmed);
$ 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_listcheck=value&confirmed=value"
<Integer> System ID of the Subscriber.
$ 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"
$listid = 110; $emailaddress = "test@mail.net"; $parser->AddSubscriberToList($listid, $emailaddress);
$listid = 110; $mobile = "070444555"; $mobilePrefix = "389"; $result = $parser->AddSubscriberToList($listid, "", $mobile, $mobilePrefix);
$listid = 110; $emailaddress = "test@mail.net"; $mobile = "070444555"; $mobilePrefix = "389"; $contactFields = array( array( 'fieldid' => 11, 'value' => "MKD" ), array( 'fieldid' => 8, 'value' => "Kumanovo" ) ); $addToAutoresponders = true; $skipListCheck = false; $confirmed = false; $parser->AddSubscriberToList($listid, $emailaddress, $mobile, $mobilePrefix, $contactFields, $addToAutoresponders, $skipListCheck, $confirmed);
Contact fields for checkbox:
$contactFields = array( array( 'fieldid' => 11, 'value' => array("Monday", "Friday") ) ); $result = $parser->AddSubscriberToList($listid, $emailaddress, $mobile, $mobilePrefix, $contactFields, $addToAutoresponders, $skipListCheck);
Contact fields for one-to-many:
$contactFields = array( array( 'fieldid' => 1094, 'value' => array( 'Date' => '12-07-2017', 'Number' => 1, 'Text' => "Ajde ajde ajde OTM" ) ) ); $result = $parser->AddSubscriberToList($listid, $emailaddress, $mobile, $mobilePrefix, $contactFields, $addToAutoresponders, $skipListCheck);
Add OTM data.
$listid = 110; $emailaddress = "test@mail.net"; $mobile = "070444555"; $mobilePrefix = "389"; $addToAutoresponders = true; $skipListCheck = false; $confirmed = false; $contactFields => array( 'fieldid' => 20, 'value' = array ( "Movie" => array( array( "Title" => "Bohemian Rhapsody", "ReleaseDate" => "02.11.2018", "Actors" => array ( array ( 'FirstName' => "Rami", 'LastName' => "Malek", 'BirthDate' => "12.05.1981", 'emp_trigger' => 1 ), array ( 'FirstName' => "Lucy", 'LastName' => "Boynton", 'BirthDate' => "17.01.1994", 'emp_trigger' => 1 ) ), "Oscar" => false, "Rating" => 8.4, "Premiere" => array ( array ( 'Country' => "Denmark", 'Cinema' => "Cineplexx", 'PremiereDate' => "21.11.2018", 'emp_trigger' => 1 ), array ( 'Country' => "Macedonia", 'Cinema' => "Cineplexx", 'PremiereDate' => "01.11.2018", 'emp_trigger' => 1 ) ), 'emp_trigger' => 1 ) ), "emp_trigger" => 1 ) ); $result = $parser->AddSubscriberToList($listid, $emailaddress, $mobile, $mobilePrefix, $contactFields, $addToAutoresponders, $skipListCheck);
Get a List of Subscriber information based on search criteria.
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"
<Array> array(List of Subscribers with respective information)
<Integer> Number of Subscribers
$ 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:
$searchinfo['Status'] = "all"; $result = $parser->GetSubscribers($searchinfo);
All active subscribers:
$result = $parser->GetSubscribers();
All unconfirmed subscribers in lists:
$searchinfo['List'] = "any"; $searchinfo['Status'] = "unconfirmed"; $result = $parser->GetSubscribers($searchinfo);
Count unsubscribed subscribers in list:
$searchinfo['List'] = 19; $searchinfo['Status'] = "unsubscribed"; $countOnly = true; $result = $parser->GetSubscribers($searchinfo, $countOnly);
Subscribers in specific list(s):
$searchinfo['List'] = array(12); $result = $parser->GetSubscribers($searchinfo);
Subscribers added today:
$searchinfo['DateSearch']['type'] = "after"; $searchinfo['DateSearch']['StartDate'] = "today"; $result = $parser->GetSubscribers($searchinfo);
Subscribers added in last 24 hours:
$searchinfo['DateSearch']['type'] = "after"; $searchinfo['DateSearch']['StartDate'] = "-1 day"; $result = $parser->GetSubscribers($searchinfo);
$searchinfo['DateSearch']['StartDate'] = "-24 hours"; $result = $parser->GetSubscribers($searchinfo);
Subscribers added in last week [in last 7 days, not from Monday]:
$searchinfo['DateSearch']['type'] = "after"; $searchinfo['DateSearch']['StartDate'] = "tomorrow -1 week"; $result = $parser->GetSubscribers($searchinfo);
Subscribers added before specific date:
$searchinfo['DateSearch']['type'] = "before"; $searchinfo['DateSearch']['StartDate'] = "17-05-2016"; $result = $parser->GetSubscribers($searchinfo);
Subscribers added on specific date:
$searchinfo['DateSearch']['type'] = "exactly"; $searchinfo['DateSearch']['StartDate'] = "19 May 2017"; $result = $parser->GetSubscribers($searchinfo);
Subscribers added between 2 dates:
$searchinfo['DateSearch']['type'] = "between"; $searchinfo['DateSearch']['StartDate'] = "10 May 2017"; $searchinfo['DateSearch']['EndDate'] = "20-May-2017"; $result = $parser->GetSubscribers($searchinfo);
Subscribers in specific list(s) added today:
$searchinfo['List'] =12; $searchinfo['DateSearch']['type'] = "after"; $searchinfo['DateSearch']['StartDate'] = "today"; $result = $parser->GetSubscribers($searchinfo);
Get a List of Subscriber information based on custom field.
GetSubscribersByCustomField(listid, data, activeOnly, 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=value&countonly=value&limit=value&offset=value"
$ 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"
$listid = 55; $data = array ( array ( 'fieldid' => 150, 'fieldvalue' => 'Name', 'operator' => OR' ), array ( 'fieldid' => 151, 'fieldvalue' => 'Last Name', ) ) ); $limit = 10; $activeOnly = true; $countOnly = false; $result = $parser->GetSubscribersByCustomField($listid, $data, $activeOnly, $countOnly, $limit);
$listid = 55; $data = array ( array ( 'fieldid' => 180, 'fieldvalue' => '05-07-2018', 'type' => 'after', 'operator' => 'OR' ), array ( 'fieldid' => 180, 'fieldvalue' => '05-12-2018', 'type' => 'before' ) ); $result = $parser->GetSubscribersByCustomField($listid, $data);
$listid = 55; $data = array ( array ( 'fieldid' => 152, 'fieldvalue' => 'Blue', 'operator' => 'AND' ), array ( 'fieldid' => 153, 'fieldvalue' => 155, ) ) ); $result = $parser->GetSubscribersByCustomField($listid, $data);
$listid = 55; $data = array ( array ( 'fieldid' => 180, 'fieldvalue' => '05-05-2018', 'fieldvalue_end_date' => '05-11-2018', 'type' => 'between' ) ); $result = $parser->GetSubscribersByCustomField($listid, $data);
Loads customfield data based on the list specified.
LoadSubscriberCustomFields(subscriberid, listid);
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/LoadSubscriberCustomFields?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value&listid=value"
<Array> Subscriber's custom field data for that particular list
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/LoadSubscriberCustomFields?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=150&listid=55"
$subscriberid = 150; $listid = 55; $result = $parser->LoadSubscriberCustomFields($subscriberid,$listid);
Loads OTM data for subscriber.
GetOneToManySubscriberData(subscriberid, fieldid);
$ http GET "https://api.mailmailmail.net/v1.1/CustomFields/GetOneToManySubscriberData?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberID=value&fieldID=value"
<Array> Subscriber's OTM data
$ http GET "https://api.mailmailmail.net/v1.1/CustomFields/GetOneToManySubscriberData?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberID=150&fieldID=55"
$subscriberid = 150; $fieldid = 55; $result = $parser->GetOneToManySubscriberData($subscriberid,$fieldid);
Gets subscriber data including last events and bounces.
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"
<Array> Subscriber details.
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscriberDetails?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&subscriberid=0&emailaddress=test@mail.net"
$listid = 12; $emailaddress = "test@mail.net"; $result = $parser->GetSubscriberDetails($listid, 0, $emailaddress);
$listid = 12; $mobile = "72589985" $mobilePrefix = “389”; $result = parser->GetSubscriberDetails($listid, 0, "", $mobile, $mobilePrefix);
$listid = 12; $subscriberid = 62; $result = parser->GetSubscriberDetails($listid, $subscriberid);
Gets subscriber events.
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"
<Array> Subscriber events.
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscriberEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=12&subscriberid=62"
$listid = 12; $subscriberid = 62; $result = parser->GetSubscriberEvents($listid, $subscriberid);
$listid = 12; $subscriberid = 62; $limit = 50; $offset = 5; $result = parser->GetSubscriberEvents($listid, $subscriberid, $limit, $offset);
Get a List of Subscribers updated after the specified date.
GetSubscribersUpdatedSince(date, listid, 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"
$ 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"
$date = "23.01.2018"; $listid = 19; $limit = 10; $offset = 0; $result = $parser->GetSubscribersUpdatedSince($date, $listid, $limit, $offset);
Get a list of subscribers from segment.
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"
$ http GET "https://api.mailmailmail.net/v1.1/Subscribers/GetSubscribersFromSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=56"
$segmentid = 56; $result = $parser->GetSubscribersFromSegment($segmentid);
$segmentid = 56; $countOnly = true; $result = $parser->GetSubscribersFromSegment($segmentid,$countOnly);
$segmentid = 56; $countOnly = false; $activeOnly = true; $limit = 20; $result = $parser->GetSubscribersFromSegment($segmentid,$countOnly, $activeOnly, $limit);
Get a list of triggers for list or all triggers.
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"
<Array> array(List of triggers with respective information)
$ http GET "https://api.mailmailmail.net/v1.1/Triggers/GetTriggers?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=56"
$listid = 56; $result = $parser->GetTriggers($listid);
$listid = 56; $limit = 10; $result = $parser->GetTriggers($listid, $limit);
Get a list of triggers for segment.
GetTriggersForSegment(segmentid);
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetTriggersForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=value"
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetTriggersForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=56"
$segmentid = 56; $result = $parser->GetTriggersForSegment($segmentid);
Create segment with specific rules.
CreateSegment(name, rules, connector);
$ http GET "https://api.mailmailmail.net/v1.1/Segments/CreateSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&name=value&rules=value&connector=value"
<Integer> new segment id
$ http GET "https://api.mailmailmail.net/v1.1/Segments/CreateSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&name=segment"
Basic fields emailaddress mobilePhone format confirmationStatus activityStatus smsStatus mailRating dateAdded clickedOnLink emailCampaign subscriberSource Custom fields Rule name is id of custom field
Rules '=' => is / equal '=' => is on '=' => has clicked '!=' => is not / not equal '!=' => has not clicked '!=' => is not on 'contains' => contains 'notContain' => does not contain 'empty' => is empty 'notEmpty' => is not empty 'after' => is after 'before' => is before 'between' => is between 'opened' => has opened 'notOpened' => has not opened 'sent' => sent 'notSent' => not sent
Values 'html' => HTML 'manual' => Manual 'text' => Text 'api' => Api 'confirmed' => Confirmed 'facebook' => Facebook 'unconfirmed' => Unconfirmed 'connector' => Connector 'active' => Active 'unknown' => Unknown 'bounced' => Bounced 'unsubscribed' => Unsubscribed 'disabled' => Disabled 'any' => Any Link 'any' => Any Email Campaign 'lastMonth' => Any Campaign Last Month 'last3Months' => Any Campaign Last 3 Months 'last6Months' => Any Campaign Last 6 Months 'last9Months' => Any Campaign Last 9 Months 'last12Months' => Any Campaign Last 12 Months 'webForm' => Web Form 'import' => Import
$name = 'segment name'; $connector = 'and'; $listids = array(205); $segments = array( 'Segments'=> array( array( 'listids' => $listids, 'rules' => array( array( 'ruleName' => 'emailaddress', 'ruleOperator' => '=', 'ruleValue' => 'test@dev.com' ) ) ) ) ); $result = $this->parser->CreateSegment($name, $segments, $connector);
$name = 'segment name'; $connector = 'and'; $listids = array(189); $segments = array( 'Segments'=> array( array( 'listids' => $listids, 'rules' => array( array( 'ruleName' => 'emailaddress', 'ruleOperator' => '=', 'ruleValue' => 'test@dev.com' ), array( 'ruleName' => 'mobilePhone', 'ruleOperator' => '=', 'ruleValue' => '078123123' ) ) ) ) ); $result = $this->parser->CreateSegment($name, $segments, $connector);
$name = 'segment name'; $connector = 'and'; $listids = array(189); $segments = array( 'Segments'=> array( array( 'listids' => $listids, 'rules' => array( array( 'ruleName' => 'dateAdded', 'ruleOperator' => 'between', 'ruleValue' => array('20/01/2018','20/02/2019') ) ) ) ) ); $result = $this->parser->CreateSegment($name, $segments, $connector);
$name = 'segment name'; $connector = 'and'; $listids = array(189); $listids2 = array(190); $segments = array( 'Segments'=> array( array( 'listids' => $listids, 'rules' => array( array( 'ruleName' => 'emailaddress', 'ruleOperator' => '=', 'ruleValue' => 'test@dev.com' ) ), 'operator' => 'plus' ), array( 'listids' => $listids2, 'rules' => array( array( 'ruleName' => 'mobilePhone', 'ruleOperator' => '=', 'ruleValue' => '070111222' ) ) ) ) ); $result = $this->parser->CreateSegment($name, $segments, $connector);
Get a list of segments for list or all segments.
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"
<Array> array(List of segments with respective information)
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetSegments?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=56"
$listid = 56; $result = $parser->GetSegments($listid);
$listid = 56; $countSubscribers = true; $limit = 10; $result = $parser->GetSegments($listid, $countSubscribers, $limit);
Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for Segment
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"
<Array> array(Details about the Statistics entry.)
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetSegmentSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=56"
$segmentid = 56; $result = $parser->GetSegmentSummary($segmentid);
$segmentid = 56; $from = "30-05-2017"; $result = $parser->GetSegmentSummary($segmentid, $from);
$segmentid = 56; $to = "15-08-2018"; $result = $parser->GetSegmentSummary($segmentid, false, $to);
Get all rules for Segment
GetRulesForSegment(segmentid);
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetRulesForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=value"
<Array> array(rules for segment)
$ http GET "https://api.mailmailmail.net/v1.1/Segments/GetRulesForSegment?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&segmentid=56"
$segmentid = 56; $result = $parser->GetRulesForSegment($segmentid);
Updates Subscriber information.
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"
<Array> arrary(true, “Subscriber has been updated”)
<Array> array(false, “Unable to query the database”)
$ 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]=MKD&customfields[1][fieldid]=8&customfields[1][value]=Kumanovo&customfields[2][fieldid]=52&customfields[2][value][0]=Mon&customfields[2][value][1]=Sat&customfields[2][value][2]=Sun"
$listid = 113; $subscriberid = 319; $emailaddress = "update@subscriber.net"; $mobile = “70569358”; $mobilePrefix = “389”; $contactFields = array( array( 'fieldid' => 11, 'value' => "MKD" ), array( 'fieldid' => 8, 'value' => "Kumanovo" ), array( 'fieldid' => 52, 'value' => array("Mon", "Sat", "Sun") ) ); $result = $parser->UpdateSubscriber($listid, $subscriberid, $emailaddress, $mobile, $mobilePrefix, $contactFields);
$contactFields = array( array( 'fieldid' => 1094, 'value' => array( 'Date' => '9-11-2017', 'Number' => 1, 'Text' => "Ajde ajde ajde OTM" ) ) ); $result = $parser->UpdateSubscriber($listid, $subscriberid, $emailaddress, $mobile, $mobilePrefix, $contactFields);
$listid = 110; $emailaddress = "test@mail.net"; $mobile = "070444555"; $mobilePrefix = "389"; $subscriberid = 120; $contactFields => array( 'fieldid' => 20, 'value' = array ( "Movie" => array( array( "Title" => "Bohemian Rhapsody", "ReleaseDate" => "02.11.2018", "Actors" => array ( array ( 'FirstName' => "Rami", 'LastName' => "Malek", 'BirthDate' => "12.05.1981", 'emp_trigger' => 1 ), array ( 'FirstName' => "Lucy", 'LastName' => "Boynton", 'BirthDate' => "17.01.1994", 'emp_trigger' => 1 ) ), "Oscar" => false, "Rating" => 8.4, "Premiere" => array ( array ( 'Country' => "Denmark", 'Cinema' => "Cineplexx", 'PremiereDate' => "21.11.2018", 'emp_trigger' => 1 ), array ( 'Country' => "Macedonia", 'Cinema' => "Cineplexx", 'PremiereDate' => "01.11.2018", 'emp_trigger' => 1 ) ), 'emp_trigger' => 1 ) ), "emp_trigger" => 1 ) ); $result = $parser->UpdateSubscriber($listid, $subscriberid, $emailaddress, $mobile, $mobilePrefix, $contactFields);
Request to change current email address.
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"
$ 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"
$subscriberid = 319; $listid = 113; $currentEmail = "currentEmail@requestupdate.net"; $newEmail = "newemail@requestupdate.net"; $contactFields = array( array( 'fieldid' => 8, 'value' => 'Skopje' ) ); $result = $parser->RequestUpdateEmail($subscriberid, $listid, $currentEmail, $newEmail, $contactFields);
Change subscriber mobile.
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"
<Array> arrary(true, “Mobile Number has been changed”)
$ 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"
$listid = 113; $subscriberid = 319; $mobile = “70569358”; $mobilePrefix = “389”; $result = $parser->ChangeMobile($listid, $subscriberid, $mobile, $mobilePrefix);
$listid = 113; $subscriberid = 319; $mobile = “70569358”; $result = $parser->ChangeMobile($listid, $subscriberid, $mobile);
Saves contact field information for particular Subscriber, particular List and particular Field.
SaveSubscriberCustomField(subscriberid, fieldid, fieldValue, skipEmptyData);
$ 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"
$ 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"
$subscriberid = 1; $fieldid = 8; // (8 => City) $fieldValue = "Bergen"; $skipEmptyData = true; $result = $parser->SaveSubscriberCustomField($subscriberid, $fieldid, $fieldValue, $skipEmptyData);
$fieldid = 20; $subscriberid = 120; $skipEmptyData = true; $fieldValue => array( "Movie" => array( array( "Title" => "Bohemian Rhapsody", "ReleaseDate" => "02.11.2018", "Actors" => array ( array ( 'FirstName' => "Rami", 'LastName' => "Malek", 'BirthDate' => "12.05.1981", 'emp_trigger' => 1 ), array ( 'FirstName' => "Lucy", 'LastName' => "Boynton", 'BirthDate' => "17.01.1994", 'emp_trigger' => 1 ) ), "Oscar" => false, "Rating" => 8.4, "Premiere" => array ( array ( 'Country' => "Denmark", 'Cinema' => "Cineplexx", 'PremiereDate' => "21.11.2018", 'emp_trigger' => 1 ), array ( 'Country' => "Macedonia", 'Cinema' => "Cineplexx", 'PremiereDate' => "01.11.2018", 'emp_trigger' => 1 ) ), 'emp_trigger' => 1 ) ), "emp_trigger" => 1 ); $result = $parser->SaveSubscriberCustomField($subscriberid, $fieldid, $fieldValue, $skipEmptyData);
Saves partial One-To-Many data for particular Subscriber
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"
<Array> array(false, "Message")
$ 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&"
Add new Actor into first movie.
$listid = 1; $subscriberid = 1; $fieldid = 18; $path = "Movie[0].Actors"; $values = array ( 'FirstName' => 'First name', 'LastName' => 'Last name', 'BirthDate' => '30.11.2018', 'emp_trigger' => 1 ); $result = $parser->AddToOTMDocument($listid, $subscriberid, false, false, false, $fieldid, $values, $path);
Add new Premiere into second movie.
$listid = 1; $emailaddress = "test@dev.com"; $fieldid = 18; $path = "Movie[1].Premiere"; $values = array ( 'Country' => 'Denmark', 'Cinema' => 'Cineplexx', 'PremiereDate' => '30.11.2018', 'emp_trigger' => 1 ); $result = $parser->AddToOTMDocument($listid, false, $emailaddress, false, false, $fieldid, $values, $path);
Add new Movie.
$listid = 1; $mobile = "20121212"; $mobilePrefix = "45"; $fieldid = 18; $path = "Movie"; $values = array ( "Title" => "Bohemian Rhapsody", "ReleaseDate" => "02.11.2018", "Actors" => array ( array ( 'FirstName' => "Rami", 'LastName' => "Malek", 'BirthDate' => "12.05.1981", 'emp_trigger' => 1 ), array ( 'FirstName' => "Lucy", 'LastName' => "Boynton", 'BirthDate' => "17.01.1994", 'emp_trigger' => 1 ) ), "Oscar" => false, "Rating" => 8.4, "Premiere" => array ( array ( 'Country' => "Denmark", 'Cinema' => "Cineplexx", 'PremiereDate' => "21.11.2018", 'emp_trigger' => 1 ), array ( 'Country' => "Macedonia", 'Cinema' => "Cineplexx", 'PremiereDate' => "01.11.2018", 'emp_trigger' => 1 ) ), 'emp_trigger' => 1 ); $result = $parser->AddToOTMDocument($listid, false, false, $mobile, $mobilePrefix, $fieldid, $values, $path);
Update One-To-Many data for specific Subscriber.
Note: Use this format for Date fields in OTM structure: "dd-mm-yyyy Thh:mm" (see examples).
UpdateOTMDocument(subscriberid, listid, emailaddress, mobile, mobilePrefix, fieldid, fieldValueOTM, path);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UpdateOTMDocument --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value&fieldid=value&fieldValueOTM=value&path=value"
<Array> array(true, "Message")
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/UpdateOTMDocument --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=1097&fieldid=17&path=Movie[1]&values[FirstName]=Ian&values[LastName]=McShane&values[BirthDate]=29.09.1942"
Update FirstName, Lastname, UserID and Active for UserOrder:
$subscriberID = 123555; $listID = 5511; $subscriberEmail = "test@mail.com"; $mobile = "078555555"; $mobilePrefix = "389"; $fieldID = 341; $path = ''; $value = array( 'FirstName' => 'Joe', 'Lastname' => 'Doe', 'UserID'=> 2952, 'Active' => True ); $result = $parser->UpdateOTMDocument($subscriberID, $listID, $subscriberEmail, $mobile, $mobilePrefix, $fieldID, $value, $path);
Update OrderName, OrderDescription, OrderID and OrderDate for orders with OrderID 634:
$subscriberID = 123555; $listID = 5511; $subscriberEmail = "test@mail.com"; $mobile = "078555555"; $mobilePrefix = "389"; $fieldID = 341; $path = 'Order[OrderID=634]'; $value = array( 'OrderName' => 'Order One', 'OrderDescription' => 'Some Description', 'OrderID'=> 52674 'OrderDate' => '07-08-2020 T09:04' ); $result = $parser->UpdateOTMDocument($subscriberID, $listID, $subscriberEmail, $mobile, $mobilePrefix, $fieldID, $value, $path);
Update ProductName, ProductDescription, ProductID and InStock for orders on date 07-08-2020 T09:04 and products with "True" value for InStock:
$subscriberID = 123555; $listID = 5511; $subscriberEmail = "test@mail.com"; $mobile = "078555555"; $mobilePrefix = "389"; $fieldID = 341; $path = 'Order[OrderDate=07-08-2020 T09:04].Product[InStock=true]'; $value = array( 'ProductName' => 'First Product', 'ProductDescription' => 'Change 3', 'ProductID'=> 557987, 'InStock'= false ); $result = $parser->UpdateOTMDocument($subscriberID, $listID, $subscriberEmail, $mobile, $mobilePrefix, $fieldID, $value, $path);
Remove One-To-Many data for specific Subscriber.
RemoveOTMDocument(subscriberid, fieldid, path, index);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/RemoveOTMDocument --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value&fieldid=value&path=value&index=value"
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/RemoveOTMDocument --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=1097&fieldid=17&path=Movie&index=2"
Remove 3rd Movie:
$subscriberid = 1097; $fieldid = 17; $path = "Movie"; $index = 2; $result = $parser->RemoveOTMDocument($subscriberid, $fieldid, $path, $index);
Remove 2nd actor in 5th Movie:
$subscriberid = 1097; $fieldid = 17; $path = "Movie[4].Actor"; $index = 1; $result = $parser->RemoveOTMDocument($subscriberid, $fieldid, $path, $index);
Resubscribe subscriber if subscribed is deleted. Please note that using this method will result in sending out a confirmation email.
ResubscribeContact(listid, emailaddress, mobile, mobilePrefix, addToAutoresponders, contactFields);
$ 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"
<Array> array(true, message)
$ 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"
$listid = 23; $emailaddress = "test@dev.com"; $result = $parser->ResubscribeContact(listid, $emailaddress);
$listid = 23; $mobile = "20111222"; $mobilePrefix = "45"; $result = $parser->ResubscribeContact(listid, false, $mobile, $mobilePrefix);
$listid = 23; $mobile = "20111222"; $mobilePrefix = "45"; $contactFields = array( array( 'fieldid' => 11, 'value' => "MKD" ), array( 'fieldid' => 8, 'value' => "Kumanovo" ) ); $result = $parser->ResubscribeContact(listid, false, $mobile, $mobilePrefix, false, contactFields);
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.
IsSubscriberOnList(listsids, emailaddress, mobile, mobilePrefix, subscriberid, activeOnly, notBounced, return_listid);
$ 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"
<Array> array(integers)
$ 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"
$listids = array( 1, 2, 3 ); $emailaddress = "test@asp.net"; $mobile = "72123456" ; $mobilePrefix = "389"; $subscriberid = 22; $activeOnly = false; $notBounced = false; $returnListid = false; $result = $parser->IsSubscriberOnList($listids, $emailaddress, $mobile, $mobilePrefix, $subscriberid, $activeOnly, $notBounced, $returnListid);
Checks whether an email address is an 'unsubscriber'.
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"
<Integer> Subscriber ID
$ 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=75987654&mobilePrefix=389&subscriberid=22&service=email"
$listid = 12; $emailaddress = "test@asp.net"; $mobile = "75987654"; $mobilePrefix = "389"; $subscriberid = 22; $service = "email"; or "smscampaign"; // Depends on whether you want to check Unsubscribe for Email or SMS Campaigns $result = $parser->IsUnSubscriber($listid, $emailaddress, $mobile, $mobilePrefix, $subscriberid, $service);
Unsubscribes an Email Address from a specific List.
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"
$ 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"
$listid = 12; $emailaddress = "test@mail.net"; $result = $parser->UnsubscribeSubscriberEmail($listid, $emailaddress);
$subscriberid = 267; $result = $parser->UnsubscribeSubscriberEmail($listid, "", $subscriberid);
$listid = 12; $emailaddress = "test@mail.net"; $skipCheck = false; $statid = 32; $result = $parser->UnsubscribeSubscriberEmail($listid, $emailaddress, 0, $skipCheck, $statid);
UUnsubscribes an Email Address from a specific List.
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"
$ 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"
$listid = 12; $mobile = "72445865"; $mobilePrefix = "389"; string result = parser.UnsubscribeSubscriberMobile($listid, $mobile, $mobilePrefix);
int listid = 12; int subscriberid = 267; string result = $parser.UnsubscribeSubscriberMobile($listid, "", "", $subscriberid);
$listid = 12; $mobile = "72445865"; $mobilePrefix = "389"; $skipCheck = false; $statid = 32; string result = parser.UnsubscribeSubscriberMobile($listid, $mobile, $mobilePrefix, 0, $skipCheck, $statid);
Gets all subscriberids, listids for a particular email address and returns an array of them.
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"
<Array> Multidimensional array containing both subscriberid and listid
<Array> empty
$ 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"
$emailaddress = "test@mail.net"; $listids = array( 1, 2, 3 ); $result = $parser->GetAllListsForEmailAddress($emailaddress, $listids);
$emailaddress = "test@mail.net"; $listids = array( 1, 2, 3 ); $mainListid = 2; $activeOnly = true; $deleted = false; $result = $parser->GetAllListsForEmailAddress($emailaddress, $listids, $mainListid, $activeOnly, $deleted);
All subscriber information is deleted and email/mobile is restricted from subscribing again - it will not be possible to add this contact again except from ResubscribeContact which the contact needs to confirm.
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"
$ http DELETE "https://api.mailmailmail.net/v1.1/Subscribers/DeleteSubscriber' -d 'Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid[0]=1&listid[1]=2&listid[2]=3&emailaddress=test@mail.net&mobile=70123456&mobilePrefix=389&subscriberid=22"
$listid = array( 1, 2, 3 ); $emailaddress = "test@mail.net"; $mobile = "70123456"; $mobilePrefix = "389"; $subscriberid = 22; $result = $parser->DeleteSubscriber($listid, $emailaddress, $mobile, $mobilePrefix, $subscriberid);
Fetches the details of a Newsletter or Autoresponder statistics entry.
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"
<Array> Array of details about the Statistics entry.
$ http GET "https://api.mailmailmail.net/v1.1/Stats/FetchStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=11&statstype=newsletter"
$statid = 11; $statsType = "newsletter"; $result = $parser->FetchStats($statid, $statsType);
Get all statids.
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"
<Array> Array of statids.
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetStatids?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=11"
$listid = 11; $result = $parser->GetStatids($listid);
$listid = 11; $from = "10-01-2019"; $result = $parser->GetStatids($listid, false, false, $from);
$listid = 11; $from = "10-01-2019"; $newsletterid = 102; $limit = 50; $result = $parser->GetStatids($listid, false, $newsletterid, $from, false, $limit);
Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for a List.
GetListSummary(listid, limit, offset);
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetListSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=value&limit=value&offset=value"
<Array> Details about the Statistics entry.
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetListSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=11"
$listid = 11; $result = parser->GetListSummary($listid);
$listid = 11; $limit = 30; $result = parser->GetListSummary($listid, $limit);
$listid = 11; $limit = 30; $offset = 5; $result = parser->GetListSummary($listid, $limit, $offset);
Fetches a List of Bounced Emails.
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"
<Array> Array of bounces
<Integer> Number of bounces
$ 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"
$listid = 11; $countOnly = false; $bounceType = "any"; $searchType = "between"; $searchStartDate = "24-05-2017"; $searchEndDate = "01.06.2017"; $result = parser->GetBouncesByList($listid, $countOnly, $bounceType, $searchType, $searchStartDate, $searchEndDate);
$listid = 11; $countOnly = true; $result = parser->GetBouncesByList($listid, $countOnly);
Fetches a List of Subscribers who Unsubscribed from a Campaign.
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"
<Array> Array of unsubscribed contacts
<Integer> Number of unsubscribed contacts
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetUnsubscribesByList?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&listid=11&count_only=true"
$listid = 11; $countOnly = true; $result = $parser->GetUnsubscribesByList($listid, $countOnly);
Return the openers of email campaign.
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"
<Array> Returns dump of Email Addresses that have opened a specific Campaign, or it only counts the number of openers.
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetOpens?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=11"
$statid = 11; $result = $parser->GetOpens($statid);
Counts the number of opens:
$statid = 11; $countOnly = true; $result = $parser->GetOpens($statid, $countOnly);
Counts the number of unique opens:
$statid = 11; $countOnly = true; $uniqueOnly = true; $result = $parser->GetOpens($statid, $countOnly, $uniqueOnly);
Details for unique opens:
$statid = 11; $countOnly = false; $uniqueOnly = true; $result = $parser->GetOpens($statid, $countOnly, $uniqueOnly);
Return the Recipients of Autoresponder.
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"
<Array> Array of Recipients.
<Integer> Total number of Recipients.
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetRecipients?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&statid=11"
$statid = 11; $result = $parser->GetRecipients($statid);
Counts the number of Recipients:
$statid = 11; $countOnly = false; $result = $parser->GetRecipients($statid, $countOnly);
Get latest newsletter statistics.
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"
<Array> Newsletter statistic.
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetLatestStats?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=11"
$newsletterid = 11; $result = $parser->GetLatestStats($newsletterid);
$newsletterid = 14; $limit = 10; $result = $parser->GetLatestStats($newsletterid, $limit);
Schedule newsletter campaign for sending.
ScheduleSendNewsletter(campaignid, timeToSend, saveSnapshots, reloadFeed, notifyOwner);
$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&hours=value"
<Array> array(true, "Campaign has be scheduled")
$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=30&hours=1"
$campaignid = 30; $timeToSend = 1; //Time in hours, 0.5 = 30 minutes $saveSnapshots = false; $result = $parser->ScheduleSendNewsletter($campaignid, $timeToSend, $saveSnapshots);
$campaignid = 30; $timeToSend = 1; //Time in hours, 0.5 = 30 minutes $saveSnapshots = true; $reloadFeed = false; $notifyOwner = true; $result = $parser->ScheduleSendNewsletter($campaignid, $timeToSend, $saveSnapshots, $reloadFeed, $notifyOwner);
Schedule newsletter campaign for sending to specific lists.
ScheduleSendNewsletterToLists(campaignid, timeToSend, listids, saveSnapshots, reloadFeed, notifyOwner);
$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSendNewsletterToLists --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&hours=value&listids=value"
$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSendNewsletterToLists --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=30&hours=1&listids[0]=12"
$campaignid = 30; $timeToSend = 1; //Time in hours, 0.5 = 30 minutes $listids = array(10,25); $saveSnapshots = false; $result = $parser->ScheduleSendNewsletterToLists($campaignid, $timeToSend, $listids, $saveSnapshots);
$campaignid = 30; $timeToSend = 1; //Time in hours, 0.5 = 30 minutes $listids = array(10,25); $saveSnapshots = true; $reloadFeed = false; $notifyOwner = true; $result = $parser->ScheduleSendNewsletterToLists($campaignid, $timeToSend, $listids, $saveSnapshots, $reloadFeed, $notifyOwner);
Schedule newsletter campaign for sending to specific segments.
ScheduleSendNewsletterToSegments(campaignid, timeToSend, segmentids, saveSnapshots, reloadFeed, notifyOwner);
$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSendNewsletterToSegments--data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&hours=value&listids=value"
$ http POST https://api.mailmailmail.net/v1.1/Sends/ScheduleSendNewsletterToSegments --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=30&hours=1&segmentids[0]=12"
$campaignid = 30; $timeToSend = 1; //Time in hours, 0.5 = 30 minutes $segmentids = array(10,25); $saveSnapshots = true; $result = $parser->ScheduleSendNewsletterToSegments($campaignid, $timeToSend, $segmentids, $saveSnapshots);
$campaignid = 30; $timeToSend = 1; //Time in hours, 0.5 = 30 minutes $segmentids = array(10,25); $saveSnapshots = false; $reloadFeed = false; $notifyOwner = true; $result = $parser->ScheduleSendNewsletterToSegments($campaignid, $timeToSend, $segmentids, $saveSnapshots, $reloadFeed, $notifyOwner);
Schedule SMS campaign for sending.
ScheduleSendSMS(campaignid, timeToSend);
$ http POST https://api.mailmailmail.net/v1.1/SMSSends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=value&hours=value"
$ http POST https://api.mailmailmail.net/v1.1/SMSSends/ScheduleSend --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&campaignid=30&hours=1"
$campaignid = 30; $timeToSend = 1; //Time in hours, 0.5 = 30 minutes $result = $parser->ScheduleSendSMS($campaignid, $timeToSend);
Attempts to send a newsletter to specific subscriber or seeks for subscriber with given email address.
SendNewsletter(newsletterid, subscriberid, emailaddress, senderEmail, senderName, replyEmail, callbackUrl, reloadFeed, notifyOwner);
$ 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"
$ http POST https://api.mailmailmail.net/v1.1/Messaging/SendNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=56&subscriberid=21"
$newsletterid = 56; $subscriberid = 21; $result = $parser->SendNewsletter($newsletterid, $subscriberid);
$newsletterid = 47; $emailaddress = "test@mail.net"; $result = $parser->SendNewsletter($newsletterid, false, $emailaddress);
$newsletterid = 47; $emailaddress = "test@mail.net"; $reloadFeed = true; $notifyOwner = true; $result = $parser->SendNewsletter($newsletterid, false, $emailaddress, false, false, false, false, $reloadFeed, $notifyOwner);
Get snapshot links for sent campaign, trigger and autoresponder
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"
<Array> List of snapshots
$ http POST https://api.mailmailmail.net/v1.1/Stats/GetSnapshots --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=65"
$subscriberid = 65; $result = $parser->GetSnapshots($subscriberid);
$subscriberid = 65; $newsletterid = 120; $result = $parser->GetSnapshots($subscriberid, false, false, $newsletterid);
$subscriberid = 65; $newsletterid = 120; $groupBy = "type"; $result = $parser->GetSnapshots($subscriberid, false, false, $newsletterid, $groupBy);
Get a List of Newsletters based on the criteria passed in.
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"
<Array> Array of Newsletters.
<Integer> Number of Newsletters.
$ 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:
$result = $parser->GetNewsletters();
Count newsletters:
$countOnly = false; $result = $parser->GetNewsletters($countOnly);
Get newsletters created after 28 May 2017:
$countOnly = false; $getLastSendDetails = true; $content = false; $afterCreateDate = "28 May 2017"; // (28-05-2017; 28-May-2017) $result = $parser->GetNewsletters($countOnly, $getLastSendDetails, $content, $afterCreateDate);
Count newsletters created after 28 May 2017:
Get newsletters with name "Newsletter 12":
$newsletterNameLike = "Newsletter 12"; $result = $parser->GetNewsletters(false, true, true, false, $newsletterNameLike);
Get newsletters with limit and offset:
$limit = 20; $offset = 5; $result = $parser->GetNewsletters(false, true, true, false, false, $limit, $offset);
Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens and Link Clicks for Newsletter
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"
$ http GET "https://api.mailmailmail.net/v1.1/Stats/GetNewsletterSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=56"
$newsletterid = 56; $result = $parser->GetNewsletterSummary($newsletterid);
$newsletterid = 56; $from = "30-05-2017"; $result = $parser->GetNewsletterSummary($newsletterid, false, $from);
$newsletterid = 56; $to = "15-08-2018"; $result = $parser->GetNewsletterSummary($newsletterid, false, false, $to);
View newsletter data.
ViewNewsletter(newsletterid);
$ http GET "https://api.mailmailmail.net/v1.1/Newsletters/ViewNewsletter?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=value"
<Array> Newsletter details.
$ http GET "https://api.mailmailmail.net/v1.1/Newsletters/ViewNewsletter?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=12"
$newsletterid = 12; $result = $parser->ViewNewsletter($newsletterid);
Change newsletter name and subject
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"
$ http POST https://api.mailmailmail.net/v1.1/Newsletters/EditNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&newsletterid=15&name=Newsletter"
$newsletterid = 15; $newsletterName = "Newsletter"; $result = $parser->EditNewsletter($newsletterid, $newsletterName);
$newsletterid = 15; $newsletterName = "Newsletter"; $newsletterSubject = "Subject"; $result = $parser->EditNewsletter($newsletterid, $newsletterName, $newsletterSubject);
Copy a newsletter along with attachments, images etc.
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"
<Array> array(true, new id)
<Array> array(false, false)
$ http POST https://api.mailmailmail.net/v1.1/Newsletters/CopyNewsletter --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&oldid=15&name=Newsletter"
$newsletterid = 15; $newsletterName = "Newsletter"; $result = $parser->CopyNewsletter($newsletterid, $newsletterName);
$newsletterid = 15; $newsletterName = "Newsletter"; $newsletterSubject = "Subject"; $result = $parser->CopyNewsletter($newsletterid, $newsletterName, $newsletterSubject);
$newsletterid = 23; $result = $parser->CopyNewsletter($newsletterid);
Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for Trigger
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"
$ http GET "https://api.mailmailmail.net/v1.1/Triggers/GetTriggerSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&triggerid=56&from=30-05-2017"
$triggerid = 56; $result = $parser->GetTriggerSummary($triggerid);
$triggerid = 56; $from = "30-05-2017"; $result = $parser->GetTriggerSummary($triggerid, $from);
$triggerid = 56; $to = "15-08-2018"; $result = $parser->GetTriggerSummary($triggerid, false, $to);
Activate/Deactivate Trigger.
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"
$ http POST https://api.mailmailmail.net/v1.1/Triggers/SetTriggerStatus --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&triggerid=15&status=true"
$triggerid = 15; $status = true; $result = $parser->SetTriggerStatus($triggerid, $status);
$triggerid = 15; $status = false; $result = $parser->SetTriggerStatus($triggerid, $status);
Calculates the total number of Emails sent, Bounces, Unsubscribes, Opens, Forwards and Link Clicks for Autoresponder
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"
$ http GET "https://api.mailmailmail.net/v1.1/Autoresponders/GetAutoresponderSummary?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&autoresponderid=56&from=30-05-2017"
$autoresponderid = 56; $result = $parser->GetAutoresponderSummary($autoresponderid);
$autoresponderid = 56; $from = "30-05-2017"; $result = $parser->GetAutoresponderSummary($autoresponderid, $from);
$autoresponderid = 56; $to = "15-08-2018"; $result = $parser->GetAutoresponderSummary($autoresponderid, false, $to);
Activate/Deactivate Autoresponder.
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"
$ http POST https://api.mailmailmail.net/v1.1/Autoresponders/SetAutoresponderStatus --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&autoresponderid=15&status=true"
$autoresponderid = 15; $status = true; $result = $parser->SetAutoresponderStatus($autoresponderid, $status);
$autoresponderid = 15; $status = false; $result = $parser->SetAutoresponderStatus($autoresponderid, $status);
Get lead score for subscriber.
GetLeadScore(subscriberid);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/GetLeadScore --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value"
<Integer> lead score
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/GetLeadScore --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=15"
$subscriberid = 15; $result = $parser->GetLeadScore($subscriberid);
Set lead score for subscrbier.
SetLeadScore(subscriberid, leadScore, set);
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/SetLeadScore --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=value&leadScore=value&set=value"
$ http POST https://api.mailmailmail.net/v1.1/Subscribers/SetLeadScore --data "Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&subscriberid=15&leadScore=100&set=overwrite"
$subscriberid = 15; $leadScore = 100; $set = "overwrite"; $result = $parser->SetLeadScore($subscriberid, $leadscore, $set);
Fetch events for sent campaigns based on user.
GetSentEmailCampaignEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentEmailCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
<Array> Events
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentEmailCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetSentEmailCampaignEvents($from, $to, $limit, $offset);
Fetch events for sent campaigns with trigger based on user.
GetSentEmailCampaignWithTriggerEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentEmailCampaignWithTriggerEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentEmailCampaignWithTriggerEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetSentEmailCampaignWithTriggerEvents($from, $to, $limit, $offset);
Fetch events for open campaigns based on user.
GetOpenCampaignEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetOpenCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetOpenCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetOpenCampaignEvents($from, $to, $limit, $offset);
Fetch events for open campaigns sent with trigger based on user.
GetOpenTriggersEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetOpenTriggersEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetOpenTriggersEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetOpenTriggersEvents($from, $to, $limit, $offset);
Fetch events for link click in campaigns based on user.
GetLinkClickCampaignEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetLinkClickCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetLinkClickCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetLinkClickCampaignEvents($from, $to, $limit, $offset);
Fetch events for link click in campaigns sent with trigger based on user.
GetLinkClickTriggerEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetLinkClickTriggerEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetLinkClickTriggerEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetLinkClickTriggerEvents($from, $to, $limit, $offset);
Fetch events for sent autoresponders based on user.
GetSentAutoresponderEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentAutoresponderEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentAutoresponderEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetSentAutoresponderEvents($from, $to, $limit, $offset);
Fetch events for opened autoresponders based on user.
GetOpenAutoresponderEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetOpenAutoresponderEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetOpenAutoresponderEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetOpenAutoresponderEvents($from, $to, $limit, $offset);
Fetch events for link click in autoresponders based on user.
GetLinkClickAutoresponderEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetLinkClickAutoresponderEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetLinkClickAutoresponderEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"
$from = "25.10.2019"; $to = "27.10.2019"; $limit = 100; $offset = 0; $result = $parser->GetLinkClickAutoresponderEvents($from, $to, $limit, $offset);
GetSentSMSCampaignEvents(from, to, limit, offset);
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentSMSCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=value&to=value&limit=value&offset=value"
$ http GET https://api.mailmailmail.net/v1.1/Events/GetSentSMSCampaignEvents?Apiusername=YOUR_API_USERNAME&Apitoken=YOUR_API_TOKEN&from=25.10.2019&to=27.10.2019&limit=100&offset=0"