Amazon Marketplace Web Service Finances PHP Client Library
Install Composer and add amazon-mws-finances to your composer.json
:, (*1)
composer require aivanouski/amazon-mws-finances:dev-master
Current version is MWSFinancesPHPClientLibrary-2015-05-01._V312120327_
., (*2)
Add the reference into your composer.json :, (*3)
"aivanouski/amazon-mws-finances": "dev-master" composer update
``` Use in controller :, (*4)
$config = array ( 'ServiceURL' => $serviceUrl, 'ProxyHost' => null, 'ProxyPort' => -1, 'ProxyUsername' => null, 'ProxyPassword' => null, 'MaxErrorRetry' => 3, );, (*5)
$service = new \MWSFinancesService_Client( AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, APPLICATION_NAME, APPLICATION_VERSION, $config);, (*6)
$request = new \MWSFinancesService_Model_ListFinancialEventGroupsRequest(); $request->setSellerId(MERCHANT_ID); $date = new \DateTime('today', new \DateTimeZone('UTC')); $request->setFinancialEventGroupStartedAfter($date->format('c')); $response = $service->ListFinancialEventGroups($request); ```, (*7)