Download the PHP package double-break-bst-fixed/spapi-php without Composer

On this page you can find all versions of the php package double-break-bst-fixed/spapi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package spapi-php

SPAPI

spapi-php is a http client for Amazon's Selling Partner API

Author: Lyubomir Slavilov

Before you start

Spapi is released as Composer package double-break/spapi-php with no warranties or promises.

There are couple classes (such as Signer, Credentials) which are essential for the API calls to work. Most of the issues will live here.

All of the actual API clients are autogenerated and given the disclaimer above - not heavily tested.

Requirements

Install and update

Now you are ready to do

Package updates

Once you have successfully installed the package, the updates are simple as normal Composer package updates. Just execute:

Configuration

Name Description Type
http Contains all the Guzzle configuration GuzzleConfiguration
LWA configuration
refresh_token Value of the refresh token issued by the Seller authorizing the application string
client_id The client id which is generated in the Seller Apps console string
client_secret The client secret with which the client will identify itself string
access_token_longevity The longevity in seconds of the token. It is basically the time period in which the token will be kept in the TokenStorage integer
Default: 3600
STS configuration
access_key The IAM role access key string
secret_key The IAM role secret key string
role_arn The ARN of the IAM role string
sts_session _longevity The longevity of the STS session which will be created integer
Default: 3600
API configuration
region The region identifier for the region you are going to execute your calls against string
Example: eu-west-1
host The region specific host of the Selling Partner API string
Example: sellingpartnerapi-eu.amazon.com

Examples

Simple use

Feed API usage

For Feed API, user can follow Feeds API Use Case Guide.

And in this guide for step 2. Encrypt and upload the feed data: user can use below example:

And for Step 6. Download and decrypt the feed processing report: user can use below example:

Debugging responses

Accessing response headers

📝Accessing headers by using client's getLastHttpResponse() is available since v1.0.5

Debugging 4xx and 5xx response headers

📝Accessing headers by using client's getLastHttpResponse() is available since v1.0.5

Migrating authorization from Amazon Marketplace Web Service to Selling Partner Api

Please, see more details in Selling Partner Api docs

Authorization for Grantless Operations in Selling Partner API

Please, see more details in Selling Partner Api docs


All versions of spapi-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.5
guzzlehttp/psr7 Version ^1.7
ext-simplexml Version *
ext-json Version *
ext-zlib Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package double-break-bst-fixed/spapi-php contains the following files

Loading the files please wait ....