你好,我需要一些帮助。 在沙盒中它工作正常但是我切换到生产它给我一个错误 2016-07-30T22:25:08.042ZFailure秘密ID无效。您提供的密码与您之前提供的密码不匹配.16117ErrorRequestError975E975_CORE_APISIGNIN_18027374_R1“
我的代码:
$site_id = 0;
$call_name = 'FetchToken';
// Create headers to send with CURL request.
$headerss = array(
'X-EBAY-API-COMPATIBILITY-LEVEL:'.$compat_level,
'X-EBAY-API-SITEID: ' .$site_id,
'X-EBAY-API-DEV-NAME: ' . $dev_id,
'X-EBAY-API-APP-NAME: ' . $app_id,
'X-EBAY-API-CERT-NAME: ' . $cert_id,
'X-EBAY-API-CALL-NAME: ' . $call_name
);
$xml_requestt = "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<".$call_name."Request xmlns=\"urn:ebay:apis:eBLBaseComponents\">
<SessionID>".$_SESSION['eBaySession']."</SessionID>
</".$call_name."Request>";
// Send request to eBay and load response in $response
$connection = curl_init();
curl_setopt($connection, CURLOPT_URL, $api_endpoint);
curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($connection, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($connection, CURLOPT_HTTPHEADER, $headerss);
curl_setopt($connection, CURLOPT_POST, 1);
curl_setopt($connection, CURLOPT_POSTFIELDS, $xml_requestt);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($connection);
curl_close($connection);
var_dump( $response);
// Create DOM object and load eBay response
$dom = new DOMDocument();
$dom->loadXML($response); // Parse data accordingly.
$ack = $dom->getElementsByTagName('Ack')->length > 0 ? $dom->getElementsByTagName('Ack')->item(0)->nodeValue : $dom->getElementsByTagName('Ack')->item(0)->nodeValue;
$usertoken = $dom->getElementsByTagName('eBayAuthToken')->length > 0 ? $dom->getElementsByTagName('eBayAuthToken')->item(0)->nodeValue : 'not found';
echo $ack;
echo "<br>";
echo $_SESSION['eBaySession'];
echo "<br>";
echo 'The token is: ' . $usertoken;
2016-07-30T22:25:08.042ZFailureThe secret Id is invalid.The secret Id you provided does not match with the one you provided earlier.16117ErrorRequestError975E975_CORE_APISIGNIN_18027374_R1"
enter code here
我做错了什么???