承接 uam/aws-ecs-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

uam/aws-ecs-client

Composer 安装命令:

composer require uam/aws-ecs-client

包简介

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

README 文档

README

This library provides a PHP client for the Amazon Product Advertising API.

It is designed to mimic the AWS PHP SDK v2.

Installation

Via composer:

Add the library package to your composer.json file:

	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.

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:

Services

A standard Guzzle configuration array containing a services key. See the Guzzle documentation.

Multiple stores

An array containing a stores key, the value of which is an array where:

  • 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.

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.

Configuration parameters

The configuration parameters fot each service are:

  • 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"

统计信息

  • 总下载量: 5.82k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固