This has eaten up 2 full days. Going crazy. I know my Token is fine as it works in the API explorer. I've used the token for many other calls with no issues. I've used the exact headers shown in the API explorer. I've ported the initial routine from VB to PHP - same exact result error both places. Not sure what I'm missing. Here's the PHP code:
<?php
$devID = '6----------------------------------8';
$appID = 'L----------------------------------6';
$certID = 'c---------------------------------f';
$clientID = 'L-------------------------------6';
//set the Server to use (Sandbox or Production)
$serverUrl = 'https://api.ebay.com/ws/api.dll'; // server URL different for prod and sandbox
//the token representing the eBay user to assign the call with
$authAPIToken = "xxxxxxxxxxxxxxxxxxxx......xxxxxx";
$link = "https://api.ebay.com/commerce/catalog/v1_beta/product/59108213";
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type:application/json',
'Accept:application/json',
'X-EBAY-C-MARKETPLACE-ID:EBAY_US',
'Authorization:Bearer '.$authAPIToken
));
curl_setopt($ch, CURLHEADER_SEPARATE, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
print '<pre>' . htmlspecialchars(print_r($response, true)) . '</pre>'
ANY help would be appreciated. Thanks is advance.