Skip to content

bode-locke/bodelocke-laravel-amazon-mws

Repository files navigation

LaravelAmazonMws

Latest Version on Packagist Total Downloads Build Status StyleCI

A Laravel package to connect to Amazon's Merchant Web Services (MWS).

Currently optimizing and testing with all MWS's actions.

The connect function will provide you a data array expected by the MWS's action passed as paramater.

Please, take a look to Amazon Web Services (AWS) documentation : https://docs.developer.amazonservices.com/en_FR/dev_guide/DG_IfNew.html

This package use the package ArrayToXMl from spatie : https://github.com/spatie/array-to-xml

Installation

Via Composer

$ composer require laravelamazonmws/laravelamazonmws

Usage

$country  = 'FR';
$config   = [
                'Marketplace_Id'    => LaravelAmazonMws::getMarketPlaceId($country),
                'Marketplace_Host'  => LaravelAmazonMws::getMarketPlaceHost($country),
                'Seller_Id'         => env('YOUR_SELLER_ID'),
                'Access_Key_ID'     => env('YOUR_ACCESS_KEY_ID'),
                'Secret_Access_Key' => env('YOUR_SECRET_ACCESS_KEY'),
            ];
$action   = 'GetFulfillmentOrder';
$query    = [
                //Add the request paramaters by Action, take a look on Amazon documentation
                'SellerFulfillmentOrderId' => 895,
            ];
$new_mws  = new LaravelAmazonMws($config);
$response = $new_mws->connect($action, $query);

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email b.delaloi@gmail.com instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages