<?php
// The URL to POST to
$url = "https://sandbox.plimus.com/services/2/shoppers/19492086";
// The value for the SOAPAction: header
$action = "GET";
$credentials = "API_13866166444551616457841:ArgosR1sk";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $credentials);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type:application/xml'));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$record = curl_exec($ch);
print_r($record);
curl_close($ch);
?>
preferences:
43.32 ms | 402 KiB | 5 Q