You are here

function MCAPI::campaignAllEmailStatsAIM in Mailchimp 5

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::campaignAllEmailStatsAIM()
  2. 6 MCAPI.class.php \MCAPI::campaignAllEmailStatsAIM()

Given a campaign and email address, return the entire click and open history with timestamps, ordered by time

AIM

@returnf string action The action taken (open or click) @returnf date timestamp Time the action occurred @returnf string url For clicks, the URL that was clicked

Parameters

string $cid the campaign id to get stats for (can be gathered using campaigns()):

integer $start optional for large data sets, the page number to start at - defaults to 1st page of data (page 0):

integer $limit optional for large data sets, the number of results to return - defaults to 1000, upper limit set at 15000:

Return value

array Array of structs containing each email and the actions (opens and clicks) that the email took, with timestamps

File

./MCAPI.class.php, line 549

Class

MCAPI

Code

function campaignAllEmailStatsAIM($cid, $email_address) {
  $params = array();
  $params["cid"] = $cid;
  $params["email_address"] = $email_address;
  return $this
    ->callServer("campaignAllEmailStatsAIM", $params);
}