The fetchDownloadCampaignRecipientResultsBackgroundResult() method returns the results of downloadCampaignRecipientResultsBackground() method call that has since completed. If a fault occurred during the asynchronous execution of the downloadCampaignRecipientResultsBackground() method, that fault will be returned to the caller of fetchDownloadCampaignRecipientResultsBackgroundResult(). Otherwise, the return value of this method will be structured the same as the value returned by a successful call to the downloadCampaignRecipientResults() method.
If the method has not yet completed, a fault will be thrown. The status of a downloadCampaignRecipientResultsBackground() call can be checked using the getBackgroundTaskStatus() method.
Input
[vrtypens:fetchBackgroundResultArgs]
session_id [xsd:string] (required)
Your API session id.
background_task_id [xsd:int]
Examples
Perl
$vrapi->fetchDownloadCampaignRecipientResultsBackgroundResult( {
session_id => $sid,
background_task_id => $btid,
} );
PHP
$vrapi->fetchDownloadCampaignRecipientResultsBackgroundResult( array(
'session_id' => $sid,
'background_task_id' => $btid,
) );
Ruby
vr.fetchDownloadCampaignRecipientResultsBackgroundResult({
'session_id' => sid,
'background_task_id' => bg_id
})
C#.NET
fetchBackgroundResultArgs objFetchBGResults = new fetchBackgroundResultArgs(); objFetchBGResults.session_id = _sSessionId; objFetchBGResults.background_task_id = iBackgroundTaskId; objVR.fetchDownloadCampaignRecipientResultsBackgroundResult(objFetchBGResults);
