Amazon Services
 

Search
Go

Shop by category
 
 
 
 
 
 
 
Amazon Marketplace Web Service

PHP Library for Amazon Marketplace Web Service



About this Library

  • Based on the 2009-01-01 API version.
  • Refers only to the amazon-mws-2009-01-01-phpclient-2009-07-02.zip file.

What's New?

  • 2009-07-02: Initial release.

Prerequisites

Reference Documentation

  • MWS Getting Started Guide
  • MWS Developer Guide

File Content

Directory Overview
src Source distribution of the library. All sources including code samples that demonstrate the use of the library are located under this directory.

Quick Start

The library comes with code samples for each available service API function. To get started with the library, follow these steps:
  1. Extract the amazon-mws-2009-01-01-phpclient-2009-07-02.zip file into a working directory.
  2. Open the .config.inc.php file in the Samples directory and set the following credentials:
    • Set your AWS Access Key ID and AWS Secret Access Key
    • define('AWS_ACCESS_KEY_ID', '<Your Access Key ID>');
      define('AWS_SECRET_ACCESS_KEY', '<Your Secret Access Key>');
                      
    • Set your Application or Company Name and Version
    • define('APPLICATION_NAME', '<Your Application Name>');
      define('APPLICATION_VERSION', '<Your Application Version or Build Number>');
                      
    • Scroll further down and set your Marketplace ID and Merchant ID
    • define ('MERCHANT_ID', '<Your Merchant ID>');
      define ('MARKETPLACE_ID', '<Your Marketplace ID>');
                      
  3. To run a sample, you can uncomment the appropriate section of code. For example, to run GetFeedSubmissionCount, uncomment at least the first three and the fifth of the following lines:
    //$request = new MarketplaceWebService_Model_GetFeedSubmissionCountRequest();
    //$request->setMerchant(MERCHANT_ID);
    //$request->setMarketplace(MARKETPLACE_ID);
    //object or array of parameters
    //invokeGetFeedSubmissionCount($service, $request);
                    
  4. You should see output similar to the following:

                =============================================================================
                GetFeedSubmissionCountResponse
                    GetFeedSubmissionCountResult
                        Count
                            92
                    ResponseMetadata
                        RequestId
                            c9128476-4849-44e8-bdcc-5019e2d76b17
                

    Happy coding!

 
 
 
 
 
 
 
About Us   Contact Us
Privacy Policy Copyright © , Amzn Services. All rights reserved.
Web business powered by Amazon WebStore