Download the PHP package tims/amazon-creatorsapi-php-sdk without Composer
On this page you can find all versions of the php package tims/amazon-creatorsapi-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tims/amazon-creatorsapi-php-sdk
More information about tims/amazon-creatorsapi-php-sdk
Files in tims/amazon-creatorsapi-php-sdk
Package amazon-creatorsapi-php-sdk
Short Description Amazon Creators API official PHP SDK, packaged for Composer
License Apache-2.0
Homepage https://github.com/timslabs/amazon-creatorsapi-php-sdk
Informations about the package amazon-creatorsapi-php-sdk
Amazon Creators API PHP SDK
Composer-ready packaging of Amazon's official Creators API PHP SDK.
Amazon distributes the SDK as a zip download from Associates Central and does not publish it to Packagist. This repository packages that SDK so it can be installed with Composer under tims/amazon-creatorsapi-php-sdk.
The PHP namespace remains Amazon's upstream Amazon\CreatorsAPI\v1\.
Requirements
- PHP 8.1+
- Guzzle 7.3+
- Amazon Associates Creators API credentials (Credential ID, Credential Secret, Version)
Install
Quick start
Samples
After composer install, run examples from examples/:
Replace placeholders in the sample files first:
<YOUR CREDENTIAL ID><YOUR CREDENTIAL SECRET><YOUR CREDENTIAL VERSION>(e.g.2.1/3.1for NA)<YOUR MARKETPLACE>(e.g.www.amazon.com)<YOUR PARTNER TAG>
Documentation
Extending the token manager
DefaultApi creates an in-memory OAuth2TokenManager by default. Subclasses can override createTokenManager() to plug in persistent caching (for example Laravel Cache) without forking the rest of the SDK:
getOrCreateTokenManager() and buildAuthenticatedHeaders() are protected so subclasses can extend auth behavior when needed.
Laravel
For Laravel integration, see tims/laravel-paapi.
License
Apache License 2.0 — see LICENSE.txt and NOTICE.txt (Amazon Creators API SDK).
All versions of amazon-creatorsapi-php-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0