<!--  Intent: verifies a contact with the given EntityGuid exists on list with listcode of 123456  -->

<?php
$curl_h = curl_init('http://api.v4.swiftreach.com/api/ContactLists/Contacts/Exists/123456/736c8340-e23b-4c23-aaa1-f55cfdb391bb');

curl_setopt($curl_h, CURLOPT_HTTPHEADER,
    array('Accept: application/json', 'Content-Type: application/json', 'SwiftAPI-Key: 123456')
);

# do not output, but store to variable
curl_setopt($curl_h, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($curl_h);

# output for testing
echo $response;

?>