Using SDK

Product Advertising API has several parameters/headers which depend on the target Amazon Locale. These common parameters are listed here: Common Request Parameters. The examples provided in this section are for US locale and hence all locale specific values like host, region, etc. are for US locale.

PHP

  1. Download paapi5-php-sdk-and-samples archive file and unzip it. The project has all the required dependencies already present in the vendor/ folder.
  2. Open the PHP project in any editor of your preference.
  3. Add your Access Key, Secret Key in sample code snippet files.
  4. Add valid Partner Tag for the requested marketplace in sample code snippet files.
  5. Run code sample like SampleGetItemsApi.php using the command php SampleGetItemsApi.php.

Java

  1. Download paapi5-java-sdk-and-samples archive and unzip it.
  2. Open the project in any editor of your preference.
  3. Add all jars present in dependencies folder to the build path.
  4. Add your Access Key, Secret Key in sample code snippet files.
  5. Add valid Partner Tag for the requested marketplace in sample code snippet files.
  6. Run code samples like SampleGetItemsApi.java.

Node.js

  1. Download paapi5-nodejs-sdk-and-samples archive and unzip it.
  2. Run npm install to install all dependencies in the node_modules/ folder.
  3. Open the Node.js project in any editor of your preference.
  4. Add your Access Key, Secret Key in sample code snippet files.
  5. Add valid Partner Tag for the requested marketplace in sample code snippet files.
  6. Run code sample like sampleGetItemsApi.js using the command node sampleGetItemsApi.js.

Python

  1. Download paapi5-python-sdk-and-samples archive and unzip it.
  2. Install all the dependencies locally using sudo python setup.py install
  3. Open the project in any editor of your preference.
  4. Add your Access Key, Secret Key in sample code snippet files.
  5. Add valid Partner Tag for the requested marketplace in sample code snippet files.
  6. Run code sample like sample_get_items_api.py using the command python sample_get_items_api.py.

For more information on SDK and support in other languages, move to the Sending a Request > With SDK section.

results matching ""

    No results matching ""