The asynchronous version of downloadCampaignRecipientResults(). This method is invoked and
the results are emailed to the caller.
the results are emailed to the caller.
Input
[vrtypens:downloadCampaignRecipientResultsArgs]
session_id [xsd:string] (required)
Your API session id.
campaign_id [xsd:int] (required)
The id of the campaign whose recipient results are being fetched.
delimiter [xsd:string] (required)
The type of result file to create: either “csv” or “tab”.
remove_duplicates [xsd:boolean]
Whether to report just one event per recipient or all events per recipient (default is false).
fields_to_include [vrtypens:ArrayOfString] (required)
An array of the names of list fields to include as columns in the result. The columns will appear in the same order as the array you pass to the system.
- email_address
- first_name
- last_name
- create_date
- title
- company_name
- address_1
- address_2
- city
- state
- postalcode
- country
- work_phone
- home_phone
- mobile_phone
- fax
- marital_status
- gender
- Any custom fields you’ve created can be included as well.
restrict_responses [vrtypens:ArrayOfString]
An array of the only response types that should be reported on. Note: these strings are case-sensitive.
Valid items for this array are:
Valid items for this array are:
- OPEN
- CLICK
- SALE
- BOUNCE
- UNSUBSCRIBE
- NONE
restrict_lists [vrtypens:ArrayOfInteger]
An array of ids of the lists whose recipients the result should be restricted to.
notification_email_address [xsd:string]
This is required for the background version of this method. When the result is ready, this email address will
receive a notification that includes a link that can be used to download the result.
receive a notification that includes a link that can be used to download the result.
start_date [xsd:string]
If specified, no events before this date will be included in the result.
This date/time should be specified in ISO 8601 format.
This date/time should be specified in ISO 8601 format.
end_date [xsd:string]
If specified, no events after this date will be included in the result.
This date/time should be specified in ISO 8601 format.
This date/time should be specified in ISO 8601 format.
Output
[xsd:int]
Examples
Perl
$vrapi->downloadCampaignRecipientResultsBackground( { session_id => $sid, campaign_id => $cid, delimiter => 'tab', remove_duplicates => 1, fields_to_include => [ 'email_address', 'first_name', 'last_name', 'zip', ], notification_email_address => 'notification@yourcompany.com', } );
PHP
$vrapi->downloadCampaignRecipientResultsBackground( array( 'session_id' => $sid, 'campaign_id' => $cid, 'delimiter' => 'tab', 'remove_duplicates' => 1, 'fields_to_include' => array( "email_address", "first_name", "last_name", "zip", ), 'notification_email_address' => 'notification@yourcompany.com', ) );
Ruby
vr.downloadCampaignRecipientResultsBackground({ 'session_id' => sid, 'campaign_id' => cid, 'delimiter' => 'tab', 'remove_duplicates' => 1, 'fields_to_include' => [ 'email_address', 'first_name', 'last_name', 'zip', ], 'notification_email_address' => 'notification@yourcompany.com', })
C#.NET
downloadCampaignRecipientResultsArgs objDownloadCampaignRecipients = new downloadCampaignRecipientResultsArgs(); objDownloadCampaignRecipients.session_id = _sSessionId; objDownloadCampaignRecipients.fields_to_include = new string[] {"email_address", "first_name", "last_name", "zip"}; objDownloadCampaignRecipients.campaign_id = iCampaignId; objDownloadCampaignRecipients.delimiter = "tab"; objDownloadCampaignRecipients.remove_duplicates = true; objDownloadCampaignRecipients.notification_email_address = "user@company.com"; objVR.downloadCampaignRecipientResultsBackground(objDownloadCampaignRecipients);