WP Manifestindependent plugin directory
manifest / integrations / wp-amazon-product-advertising-api

Amazon Product Advertising API WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress plugin which adds seamless integration to the Amazon Product Advertising API

★ 3stars
0.3latest · 9 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/zaarheed/wp-amazon-product-advertising-api/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Amazon Product Advertising API (APAI)

A dead-simple and lightweight plugin which allows interaction with the Amazon Product Advertising API. Designed for posts which review products and wish to earn affiliate comission via Amazon by promoting sales links.

Features

  • Super simple and lightweight
  • Direct integration with the Amazon Product Advertising API (no external libraries)
  • Perfect balance of user-friendly and developer-friendly
  • Actively used by myself so features in the pipeline reflect real-world needs

Background

The idea was to build a super-simple and lightweight plugin which could be used to power Amazon Product Advertising API integration on my technology blog. Once I got the basics working, I realised there may be demand for this sort of plugin from other WordPress developers or users. Therefore, the project took a turn and is now focused on providing the perfect balance between an Amazon Product Advertising API framework for developers, and a full-featured plugin for end users.

Installation

This plugin has not yet been published to the WordPress plugin repository.

  1. Clone this repository in to your wp-content/plugins directory
  2. Activate the plugin
  3. Navigate to the plugin settings page at Settings > APAI
  4. Enter your AWS Access Key, AWS Secret Key and Amazon Associate Tag ID and click Save Changes.

Usage

End Users

From the plugin settings page enable the option to 'Automatically display below post'. Then enter the ASIN in the metabox on the post editor page and links will automatically appear at the bottom of each post. The link will contain your Amazon Associate Tag as entered in the plugin settings page.

Developers

The automatic link at the bottom of the post content is currently non-configurable (nor is it well-styled in all honesty!). Developers may prefer to make modifications to their theme files to display the link to their preference.

The following example code can be added to single.php. A full API documentation will be added here soon.

<?php
    if (get_post_meta( $post->ID, 'apai_asin', true ) != '' && function_exists('zm_apai_get_product_by_asin')) {

        $apai_product = zm_apai_get_product_by_asin(get_post_meta( $post->ID, 'apai_asin', true )); ?>

        <div class="buyonamazon">
            <a class="btn btn-buyonamazon btn-md btn-block" href="<?php echo $apai_product['url']; ?>">
               Buy on Amazon for <?php echo $apai_product['fprice']; ?>
            </a>
        </div>

<?php } ?>

Roadmap

  • Support for Amazon channels other than the UK
  • Support for multiple Amazon channels simultaneously
  • Multiple products attached to a single post
  • Automatically add the product link to the post
  • Allow users to customise the product link automatically added to the post

Releases

3 releases.

Tag
Published
0.3 latest
Jul 1, 2017 9 years ago
0.2
Jun 7, 2017 9 years ago
0.1
Jun 7, 2017 9 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Amazon Product Advertising API 0.3 · audited by WP Registry

No security issues found.

Audited release
0.3
Findings
none
Worst severity
—
Content hash
e51595fc9e85bddfd324e884…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.