Overview

You can use this request to get the results of an import once it is complete.

The Method

TypeRequestMethod
RESTGEThttps://[Your URL]/api/2.0/contacts/import/results/:batch_id
XML-RPCCallcontacts.ImportResults

Your method must be structured as follows:

Parameters

Required Parameters

The following parameter is required for this request to work:

Property TypeDescriptionDefaultRequired
batch_idstringThe identifier hash of the import batch you want to get results for.emptyyes

Responses

TypeDescription
arrayThe newly created contacts with their system IDs.

Code Samples

$url = '(Your URL)/api/2.0/contacts/import/results/:batch_id';

$method = 'GET';

$cSession = curl_init();
$headers = array();
$auth = base64_encode($username . ':' . $apikey);
$headers[] = 'Authorization: Basic ' . $auth;
curl_setopt($cSession, CURLOPT_URL, $url);
curl_setopt($cSession, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cSession, CURLOPT_HEADER, false);
curl_setopt($cSession, CURLOPT_CUSTOMREQUEST, strtoupper($method));
curl_setopt($cSession, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($cSession);
curl_close($cSession);