campaignNotOpened()

Data is obtained about not opened emails for a particular campaign.

campaignNotOpened(string $cid, integer $start, integer $limit) : array
Input parameters
  • cid - campaign ID/li>
  • start - page number starting from which selection will be made (optional). Default value is 0./li>
  • limit - number of results returned in one page (optional). Default value is 25. Maximum allowable value is 50./li>
Information obtained

Information about not opened emails is represented as an array that includes:

  • total - total number of not opened emails
  • data - array consisting of not opened email addresses

Examples

mgapi_campaignNotOpened.php
campaignNotOpened($cid, $start, $limit);
 
header("Content-Type: text/plain");
if ($api->errorCode){
    echo "Unable to load campaignNotOpened()!";
    echo "\tCode=".$api->errorCode."\n";
    echo "\tMsg=".$api->errorMessage."\n";
} else {
    if (sizeof($retval)==0){
        echo "No stats for this campaign yet!\n";
    } else {
        echo "Total: ".$retval['total']."\n";
        foreach($retval['data'] as $email){
            echo "\tE-mail: ".$email."\n";
        }
    }
}

© 2010-2017 Mailigen. All rights reserved.