Download the PHP package mehr-it/sp-api-sdk without Composer
On this page you can find all versions of the php package mehr-it/sp-api-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mehr-it/sp-api-sdk
More information about mehr-it/sp-api-sdk
Files in mehr-it/sp-api-sdk
Package sp-api-sdk
Short Description Amazon Selling Partner API - PHP SDK
License MIT
Homepage https://openapi-generator.tech
Informations about the package sp-api-sdk
Amazon Selling Partner API - PHP SDK
This repository is not an official Amazon PHP library for their SP API.
Installations
This library is not in a stable stage yet, please use with caution.
Available SDKs
SellingPartnerSDK - Facade for all SDK's
- APlusSDK
- AuthorizationSDK
- CatalogItemSDK
DeprecatedCatalogItemSDK- FBAInboundSDK
- FBAInventorySDK
- FulfillmentInboundSDK
- FBASmallAndLightSDK
- FeedsSDK
- FinancesSDK
- FulfillmentOutboundSDK
- ListingsItemsSDK
- MessagingSDK
- NotificationsSDK
- OrdersSDK
- Shipment/OrdersSDK
- ProductFeesSDK
- ProductPricingSDK
- ProductTypesDefinitionsSDK
- ReportsSDK
- SalesSDK
- SellersSDK
- ServicesSDK
- ShipmentInvoicingSDK
- ShippingSDK
- SolicitationsSDK
- TokensSDK
- UploadsSDK
- VendorSDK
- VendorInvoicesSDK
- VendorOrdersSDK
- VendorShipmentsSDK
- VendorTransactionStatusSDK
- VendorDirectFulfillmentTransactionsSDK
- VendorDirectFulfillmentShippingSDK
- VendorDirectFulfillmentShippingSDK - Labels
- VendorDirectFulfillmentOrdersSDK
- VendorDirectFulfillmentPaymentsSDK
- ExternalFulfillmentSDK
- ExternalFulfillmentInventorySDK
- ExternalFulfillmentShipmentsSDK
Authorization
In order to start using SP API you need to first register as a Developer and create application. Whole process is described in Amazon Official Guides.
Amazon recommends to use Role IAM when creating application however this requires and additional API request in order to obtain access token. It's easier to use User IAM and just make sure that the user has following Inline Policy
IAM User
Example of changing refresh token into access token.
IAM Role
Development
99% of code in this library is auto generated from Amazon Selling Partner API Models using OpenAPI Generator tool. Output is later automatically upgraded by RectorPHP to PHP 7.4 version and finally coding standards are also automatically unified by PHP CS Fixer.
Requirements:
In oder to regenerate code (for example when API definitions change), execute following code:
Examples
Logging
Default log level is set up to DEBUG, but it can be changed in configuration to any other level for all operations in all APIs or only for given operation in given API.
Specific API's or only given operations can be also excluded from logging (for example APIs with PII or sensitive data).
Finally, you can also ignore specific headers when logging http request/response. By default, configuration is set to ignore following sensitive authorization headers:
you can also add your own ignored headers:
Extensions
Each SDK allows you to register custom extensions executed before and after sending API requests.
All versions of sp-api-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
psr/http-client Version ^1.0.1
psr/http-factory Version ^1.0
psr/log Version ^1.1
symfony/polyfill-uuid Version ^1.23