這次打開keys.php
<?php
/* ?2013 eBay Inc., All Rights Reserved */
/* Licensed under CDDL 1.0 - http://opensource.org/licenses/cddl1.php */
//show all errors - useful whilst developing
error_reporting(E_ALL);
// these keys can be obtained by registering at http://developer.ebay.com
//選擇環境 true = 真實環境 false = 沙盤
$production = false; // toggle to true if going against production
//版本選擇
$compatabilityLevel = 535; // eBay API version
//真實環境的參數
if ($production) {
$devID = 'DDD'; // these prod keys are different from sandbox keys
$appID = 'AAA';
$certID = 'CCC';
//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
$userToken = 'YOUR_PROD_TOKEN';
} else {
//沙盤環境的參數
// sandbox (test) environment
$devID = 'DDD_SAND'; // insert your devID for sandbox
$appID = 'AAA_SAND'; // different from prod keys
$certID = 'CCC_SAND'; // need three 'keys' and one token
//set the Server to use (Sandbox or Production)
$serverUrl = 'https://api.sandbox.ebay.com/ws/api.dll';
// the token representing the eBay user to assign the call with
// this token is a long string - don't insert new lines - different from prod token
$userToken = 'SANDBOX_TOKEN';
}
?>
參數在哪呢??
請參考下方圖示
待續....