This project is not covered by Drupal’s security advisory policy.

A better Amazon Import module for D5.

Development release only. Don't try to use this on a production site for any reason.

Amazon Associates Web Services module
=================================

Definitions
---------------
*Amazon Associates Web Services:
Amazon's API that provides access to their catalog and associated content (reviews, prices, etc).

*Search Index:
Practically speaking, this is the type of item you're looking for. To put this in context, one type of item sometimes has a different set of fields than another type (DVDs have # of audio channels; Books do not). Thus, choosing a Search Index not only specifies what _kind_ of item you're looking for, but what fields are available to search on.

*Search Fields:
These are the fields your search is actually performed on. In the query "Search on Author for Zig Ziglar", 'Author' is the search field.
The available search fields change depending on the current Search Index -- if you're searching Books, "Number of Audio Channels" won't be an available Search Field.

Description
----------------
The Amazon Associates Web Services (aaws) module allows the user to import items over Amazon's AWS interface. The aaws module uses standard node types and fields and does not rely on any Amazon-specific node types. Because of this, you can easily integrate Amazon content into your site with a minimum of difficulty. In addition, search queries are saved in the database. As a consequence, you can continue your importing project at a later time, picking up where you left off with ease.

Installation
---------------
To install, place the entire aws folder into your modules directory.
Go to administer -> site building -> modules and enable the module.

Preparation
----------------
*Make sure you're using the latest version of jQuery. It can be downloaded here: http://jquery.com/

*Get your AWS Access Key ID and Amazon Secret Access Key. If you don't have these, sign up for AWS at http://www.amazon.com/gp/browse.html?node=3435361 (it's free). Input these values at /admin/settings/aws/auth

(optional) Create a CCK type you wish to use with the appropriate fields (price, image, and so forth)

Use
-----
*Step 1: Content Mapping
/admin/settings/aws/import/add
Choose the CCK type you wish to use from the list, then choose the Search Index to associate. Give this mapping a descriptive name. Click "Next".

*Step 2: Content Mapping: Field Mapping
The fields in your chosen CCK type are now listed. Use the given form to associate fields with Search Fields. Click "Save".

*Step 3: Build a Query
/admin/settings/aws/querybuilder
Name this query, and associate it with the Content Mapping you just created. Click "Save". The Query screen now appears.

*Step 4: Build a Query: Define your terms
Here's where the fun starts. Choose a Field to search on ("Query Parameter"), and input a search term. Click "Add Filter". Once your search parameter is saved, click "Refresh View". The actual search will commence.

Results, if any, will appear under the search box. Only fields you've mapped out will be listed -- this gives you a wysiwyg-like view of what, exactly, you'll be importing. Under the "Import Options" column, click "Import" to save the node. If the save is successful, the Import link will turn into a confirmation message with a link to the new node that was created.

The system remembers which items you've already imported, and will provide you with a link to your local node on results that have been imported previously every time you search.

You can continue to add more query parameters if you want to. Each parameter is and-ed to the rest. Obviously, clicking "delete" next to a query parameter will delete it from the query. Each query is saved, so if you want to come back to this one later, just go to the "Run a Query" menu in the module and select the name of the query you want to run.

Developed by WorkHabit
Development Sponsored by PeopleJam - Reviews and advice about what works (and what doesn't!) in self improvement.

Project information

Releases