Hello,
I am trying to integrate an existing website into your API. Since Zend is not available on the server we are using I am making my own plugin for connection to the REST API. I am having a problem of getting a 401 error, I figure I am not hashing the signature properly, anyways here is my code snippet:
$sig = base64_decode(hash_hmac("sha256" , "GET api.ticketevolution.com/events?", "uSxypwsKuol3nJMxieGmfXU14L7RtNVnSkf45j0H"));
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, " https://api.ticketevolution.com/events?" );
curl_setopt($ch, CURLOPT_HEADER, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/vnd.ticketevolution.api+json; version=8"
, "X-Signature: " . $sig , "X-Token: 0eabe2b96b9c2e6df8e278d1db8332bd"));
$result = curl_exec($ch);
var_dump($result);
die();
I am using PHP 5.3.
Also I tried your hash calculator on the site and the hashes that I come up with do not match the what the site returns.
Anything you could do would be greatly appreciated.
Thanks,
James
Submitted from: http://exchange.ticketevolution.com/brokerage/offices