kinlane
8/18/2011 - 7:49 PM

Doc APIs - Poster - Order Status

Doc APIs - Poster - Order Status

$userid = "[user id]";
$userkey = "[user key]";  

$orderId = "00-0131-00071-30837";

$format = "json";
$environment = "Sandbox";

$URL = 'http://developer.mimeo.com/api/poster/orderstatus';
$QueryString = "?userid=" . $userid;
$QueryString .= "&userkey=" . $userkey;
$QueryString .= "&orderId=" . $orderId;

$QueryString .= "&format=" . urlencode($format);
$QueryString .= "&environment=" . urlencode($environment);

$URL .= $QueryString;
  
$curl_handle = curl_init();  
curl_setopt($curl_handle, CURLOPT_URL, $URL);  
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);   
  
$buffer = curl_exec($curl_handle);  
curl_close($curl_handle);  
  
var_dump($buffer);