Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Exeu/apai-io
DISCONTINUED Amazon Product Adverstising Library based on PHP REST and SOAP (only V1) using the Product Advertising API.
https://github.com/Exeu/apai-io
advertising amazon api aws php product rest
Last synced: 3 months ago
JSON representation
DISCONTINUED Amazon Product Adverstising Library based on PHP REST and SOAP (only V1) using the Product Advertising API.
- Host: GitHub
- URL: https://github.com/Exeu/apai-io
- Owner: Exeu
- Archived: true
- Created: 2013-06-08T07:19:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-12T09:11:03.000Z (about 5 years ago)
- Last Synced: 2024-05-22T01:03:07.014Z (8 months ago)
- Topics: advertising, amazon, api, aws, php, product, rest
- Language: PHP
- Homepage: http://apai-io.readthedocs.io/en/latest/
- Size: 431 KB
- Stars: 629
- Watchers: 59
- Forks: 156
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DISCONTINUED
If you want to implement new features you can still fork and enhance this repo.
Please let me know if you plan to enhance this library then i can add your fork to this list.# apai-io
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Exeu/apai-io/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Exeu/apai-io/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/Exeu/apai-io/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Exeu/apai-io/?branch=master)
[![Build Status](https://scrutinizer-ci.com/g/Exeu/apai-io/badges/build.png?b=master)](https://scrutinizer-ci.com/g/Exeu/apai-io/build-status/master)
[![Latest Stable Version](https://poser.pugx.org/exeu/apai-io/v/stable.svg)](https://packagist.org/packages/exeu/apai-io) [![Total Downloads](https://poser.pugx.org/exeu/apai-io/downloads.svg)](https://packagist.org/packages/exeu/apai-io)
[![Build Status](https://travis-ci.org/Exeu/apai-io.png?branch=master)](https://travis-ci.org/Exeu/apai-io)
[![Documentation Status](https://readthedocs.org/projects/apai-io/badge/?version=stable)](http://apai-io.readthedocs.io/en/stable/?badge=stable)ApaiIO is a highly flexible PHP library for fetching the Product Advertising API using REST or SOAP.
You can either use the built in operations like ItemSearch or ItemLookup or you can implement your own operations which fits to your needs.Everything is programmed against interfaces so you can implement your own request or response classes for example.
This class is realized by the Product Advertising API (former ECS) from Amazon WS Front. https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html
## Documentation
The documentation is currently under construction.
You can read here: http://apai-io.readthedocs.io/en/latest/
## Installation
### Composer
``` bash
$ composer require exeu/apai-io
```Composer will generate the autoloader file automaticaly. So you only have to include this.
Typically its located in the vendor dir and its called autoload.php## Basic Usage:
This library is using the PSR-4 standard: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
So you can use any autoloader which fits into this standard.
The tests directory contains an example bootstrap file.``` php
setCountry('com')
->setAccessKey(AWS_API_KEY)
->setSecretKey(AWS_API_SECRET_KEY)
->setAssociateTag(AWS_ASSOCIATE_TAG)
->setRequest($request);
$apaiIO = new ApaiIO($conf);$search = new Search();
$search->setCategory('DVD');
$search->setActor('Bruce Willis');
$search->setKeywords('Die Hard');$formattedResponse = $apaiIO->runOperation($search);
var_dump($formattedResponse);
```For some very simple examples go to the samples-folder and have a look at the sample files.
These files contain all information you need for building queries successful.## Webservice Documentation:
Hosted on Amazon.com:
http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/