2017 © Pedro Peláez
 

library aws-ecs-client

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

image

uam/aws-ecs-client

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  • Tuesday, October 17, 2017
  • by opichon
  • Repository
  • 1 Watchers
  • 3 Stars
  • 5,795 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

uam-amazon-pa-client

This library provides a PHP client for the Amazon Product Advertising API., (*1)

It is designed to mimic the AWS PHP SDK v2., (*2)

Installation

Via composer:, (*3)

Add the library package to your composer.json file:, (*4)

    require: {
        …
        "uam/aws-ecs-client": "dev-master"
    }

Usage

<?php

use UAM\Aws\Ecs\Aws;

$client = Aws::factory('path/to/config.php')->get({service});

where {service} is the name of the requested service, as per the configuration., (*5)

Configuration

The configuration file can be written as a PHP array or a json file. The configuration passed to the Aws::factory method can take one of 3 forms:, (*6)

Services

A standard Guzzle configuration array containing a services key. See the Guzzle documentation., (*7)

Multiple stores

An array containing a stores key, the value of which is an array where:, (*8)

  • the key is the name of the service
  • the value is an array of parameters passed to the service

One Guzzle service will be created for each key in the stores array., (*9)

Single store

Otherwise, the array is taken to represent the parameters of a single Guzzle service. The service name is equal to the value of the name configuration option if it exists, or "ecs" by default if not., (*10)

Configuration parameters

The configuration parameters fot each service are:, (*11)

  • key: Your AWS Access Key ID
  • associate_tag: Your Amazon Product Advertising associate tag or tracking id
  • region: A string repressenting the locale of the Amazon store to use. Allowed values are: ca, cn, de, es, fr, it, jp, uk, us.

Sample configurations

Services

<?php

$services = array(
    "amazon.fr" => array(
        "class" => "UAM\Aws\Ecs\EcsClient",
        "params" => array(
            "key" => "Your AWS Access Key Id",
            "associate_tag" => "your associate tag or tracking id",
            "region" => "fr"
        )
    ),
    "amazon.us" => array(
        "class" => "UAM\Aws\Ecs\EcsClient",
        "params" => array(
            "key" => "Your AWS Access Key Id",
            "associate_tag" => "your associate tag or tracking id",
            "region" => "us"
        )   
    )
);

Multiple stores

"stores": {
    "amazon.fr": {
        "key": "Your AWS Access Key Id",
        "associate_tag": "Your associate tag or tracking id",
        ""region": "fr"
    },
    "amazon.us": {
        "key": "Your AWS Access Key Id",
        "associate_tag": "Your associate tag or racking id",
        "region": "us"
    }
}

Single store

<?php

$config = array(
    "key" => "Your AWS Access Key Id",
    "associate_tag" => "Your associate tag or tracking id",
    "region" => "fr"
);

Named single store

"name": "amazon.fr",
"key": "Your AWS Access Key Id",
"associate_tag": "Your associate tag or tracking id",
"region": "fr"

The Versions

17/10 2017

dev-aws-sdk-3

dev-aws-sdk-3

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

23/06 2013

dev-master

9999999-dev

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

23/06 2013

0.1.6

0.1.6.0

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

29/04 2013

0.1.5

0.1.5.0

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

29/04 2013

0.1.4

0.1.4.0

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

29/04 2013

0.1.3

0.1.3.0

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

29/04 2013

0.1.2

0.1.2.0

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

27/04 2013

0.1.1

0.1.1.0

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

ecs amazon web services product advertising api

27/04 2013

0.1.0

0.1.0.0

PHP client library for the AWS ECommerce Service (Amazon Product Advertising API)

  Sources   Download

MIT

The Requires

 

amazon ecs product advertising api