Back to Documentation Overview
campaignBounceMessages
public static campaignBounceMessages(string apikey, string cid, integer start, integer limit, string since)
Retrieve the full bounce messages for the given campaign. Note that this can return very large amounts of data depending on how large the campaign was and how much cruft the bounce provider returned. Also, message over 30 days old are subject to being removed
- Section:
- Campaign Stats
- Parameters:
apikey a valid API Key for your user account. Get by calling login() cid the campaign id to pull bounces for (can be gathered using campaigns()) start optional - for large data sets, the page number to start at - defaults to 1st page of data (page 0) limit optional - for large data sets, the number of results to return - defaults to 25, upper limit set at 50 since optional - pull only messages since this time - use YYYY-MM-DD format in GMT (we only store the date, not the time) - Returns:
- array - bounces the full bounce messages for this campaign
- Returned Fields:
string date date/time the bounce was received and processed string email the email address that bounced string message the entire bounce message received - <?php
- /**
- This Example shows how to retrieve full Bounce Message data associated with a
- campaign and do some basic error checking.
- **/
- require_once 'inc/MCAPI.class.php';
- require_once 'inc/config.inc.php'; //contains apikey
- $msgs = $api->campaignBounceMessages($campaignId);
- if ($api->errorCode){
- } else {
- foreach($msgs as $msg){
- }
- }
- ?>
Examples (1)
download example code[1] mcapi_campaignBounceMessages.php
|
Add New Note
User Contributed Notes for
campaignBounceMessages |
|---|
| No notes, yet... Will you be the first?? |