Coder Social home page Coder Social logo

cakephp_amazonpas's Introduction

Amazon Product Advertising Service Plugin for CakePHP

The AmazonPAS Plugin enables the usage of the Amazon Product Advertising Service API as a Cake PHP plugin.

Amazon Requirements

You will require the following 3 keys from Amazon to be able to use the plugin effectively.

Amazon Associate ID

This is issued by Amazon when you sign up as an associate. Being an associate allows you to earn some money from any sales Amazon make which are referred to them by you.

Amazon Web Service Key and Secret Key

These are issued by Amazon when you sign up for AWS

Installation

The plugin is pretty easy to set up, all you need to do is to copy the Amazon to your application as the app/Plugin/Amazon folder.

You will need to set the 3 Amazon values detailed above in the file Plugin/Amazon/Config/aws.php and copy that file to your app/Config directory and you are ready to go.

How to use it

The AmazonPAS interface is a controller component, so all you have to do is include it in your controller.

class MyController extends AppController {
    public $components = array( 'Amazon.Pas' );
    ...
}

to access the methods simply reference $this->Pas->method() in the controller.

Methods

The methods within the component are well documented and mirror the services offered by AmazonPAS and will therefore not be documented again here. It MUST be noted however that this component DOES NOT MAKE REQUESTS TO AMAZON.

Each query method returns a string which contains the properly constructed URL of the request. It is then up to you to send that request. In this way, you may use Curl, HttpRequest or my own HttpRequest extension classes to make the request itself and process the response.

License

Copyright 2012, Stephen Found

Licensed under The MIT License
Redistributions of files must retain the above copyright notice.

Copyright

Copyright 2012
Stephen Found
http://dnsmedia.co.uk

cakephp_amazonpas's People

Watchers

James Cloos avatar Roberto Lombi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.