Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Mar 14, 2021. It is now read-only.
/apai-ioPublic archive

DISCONTINUED Amazon Product Adverstising Library based on PHP REST and SOAP (only V1) using the Product Advertising API.

NotificationsYou must be signed in to change notification settings

Exeu/apai-io

Repository files navigation

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 QualityCode CoverageBuild StatusLatest Stable VersionTotal DownloadsBuild StatusDocumentation Status

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

$ 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.mdSo you can use any autoloader which fits into this standard.The tests directory contains an example bootstrap file.

<?phpnamespaceAcme\Demo;useApaiIO\Configuration\GenericConfiguration;useApaiIO\Operations\Search;useApaiIO\ApaiIO;$conf =newGenericConfiguration();$client =new \GuzzleHttp\Client();$request =new \ApaiIO\Request\GuzzleRequest($client);$conf    ->setCountry('com')    ->setAccessKey(AWS_API_KEY)    ->setSecretKey(AWS_API_SECRET_KEY)    ->setAssociateTag(AWS_ASSOCIATE_TAG)    ->setRequest($request);$apaiIO =newApaiIO($conf);$search =newSearch();$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/

About

DISCONTINUED Amazon Product Adverstising Library based on PHP REST and SOAP (only V1) using the Product Advertising API.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp