下载解压后的亚马逊 MWS client library api 我已经尝试运行其中一个脚本以查看是否一切正常。
尝试运行文件 GetReportCountSample.php 时出现错误
Fatal error: Class 'MarketplaceWebService_Client' not found in C:\xampp\htdocs\sites\amazon marketplace\Samples\GetReportCountSample.php on line 68
我查看了配置文件并输入了我的凭据,例如:
define('AWS_ACCESS_KEY_ID', '<key id>'); //has been input
define('AWS_SECRET_ACCESS_KEY', '<secret key id>'); //has been input
define('APPLICATION_NAME', '<Your Application Name>'); //no idea what this is
define('APPLICATION_VERSION', '<Your Application Version or Build Number>'); //no idea
define ('MERCHANT_ID', '<merch id>'); //has been input
我找不到名为 MarketplaceWebService_Client
的 php 文件,我需要帮助,谢谢。
最佳答案
没有名为 MarketplaceWebService_Client 的 php 文件。它位于您下载的库中的 Client.php。 MarketplaceWebService_Client 类仅在 client.php 文件中。我认为在 GetReportCountSample.php 中未正确指定包含 Client.php 的路径。 Client.php 可能位于以下路径(示例文件夹之外):C:\xampp\htdocs\sites\amazon marketplace\Client.php
关于php - 亚马逊 mws api 类 'MarketplaceWebService_Client' 未找到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11600438/