drunomics / amazon_paapi
Drupal helper for using the Amazon Product Advertising API 5 SDK.
Installs: 18 762
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:drupal-module
Requires
- drunomics/paapi5-php-sdk: ~1.1
This package is auto-updated.
Last update: 2022-10-26 08:05:58 UTC
README
Deprecated: moved to https://www.drupal.org/project/amazon_paapi
Amazon Product Advertising API
Provides a service to load the Amazon PA API SDK 5.0 with credentials that are saved in Drupal. This is supposed to be a lean module, requests must be assembled using the classes in the SDK as there are many possibilities to compose a request. Which also means that error handling is up to the developer who implements them.
Installation
Install the module via composer:
composer require drunomics/amazon_paapi
Enable the module as you would a normal drupal module.
Sign up for an Amazon AWS account to use the Product Advertising Service.
Enter the api credentials, partner tag and region details on
/admin/config/services/amazon-paapi/settings
The credentials can also be set in environment variables, if done so they will override settings, the environment variables are:
AMAZON_PAAPI_ACCESS_KEY
AMAZON_PAAPI_ACCESS_SECRET
AMAZON_PAAPI_HOST
AMAZON_PAAPI_REGION
AMAZON_PAAPI_PARTNER_TAG
Usage
For an example how to create a request see the test ASIN page
/admin/config/services/amazon-paapi/test-asin
For further examples see the SDK (drunomics/paapi5-php-sdk) which will be downloaded via composer when installing the module.