我正在尝试创建一个类文件,其中包含调用亚马逊产品 API、报告 API、Feeds API 的所有方法。所以我必须包括所有必需的文件。我在与此类文件相同的路径上获得了所有 Amazon API 类文件夹,我包括以下方式:
==================================================== ======
//对于getASIN
require_once 'AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php';
require_once 'AmazonProductsAPI/src/MarketplaceWebServiceProducts/Model/GetCompetitivePricingForSKURequest.php';
require_once 'AmazonProductsAPI/src/MarketplaceWebServiceProducts/Model/SellerSKUListType.php';
//For putPrice (Price Change)
require_once 'FeedsAPIClass/src/MarketplaceWebService/Client.php';
require_once 'FeedsAPIClass/src/MarketplaceWebService/Mock.php';
require_once 'FeedsAPIClass/src/MarketplaceWebService/Model/SubmitFeedRequest.php';
//For Updating Quantity and Price From Amazon Report API to Our DB
require_once 'ReportsAPIClass/src/MarketplaceWebService/Client.php';
require_once 'ReportsAPIClass/src/MarketplaceWebService/Model/RequestReportRequest.php';
require_once 'ReportsAPIClass/src/MarketplaceWebService/Model/GetReportListRequest.php';
require_once 'ReportsAPIClass/src/MarketplaceWebService/Model/GetReportRequest.php';
======================================================
But i am getting error like:
======================================================
enter code here
PHP Warning: require_once(MarketplaceWebServiceProducts/Interface.php): failed to open stream: No such file or directory in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22
Warning: require_once(MarketplaceWebServiceProducts/Interface.php): failed to open stream: No such file or directory in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22
PHP Fatal error: require_once(): Failed opening required 'MarketplaceWebServiceProducts/Interface.php' (include_path='.:/usr/share/pear:/usr/share/php:/mnt/hgfs/keyur\ On\ My\ Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src') in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22
Fatal error: require_once(): Failed opening required 'MarketplaceWebServiceProducts/Interface.php' (include_path='.:/usr/share/pear:/usr/share/php:/mnt/hgfs/keyur\ On\ My\ Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src') in /mnt/hgfs/keyur On My Mac/webs/keyur.iec.com/htdocs/vendors/AmazonAPI/AmazonProductsAPI/src/MarketplaceWebServiceProducts/Client.php on line 22
==================================================== ==
根据我的电脑,这条路径是正确的,但不知道出了什么问题。请帮忙.........................