2017 © Pedro Peláez
 

library mws

mws api

image

ireisaac/mws

mws api

  • Wednesday, February 3, 2016
  • by IreIsaac
  • Repository
  • 3 Watchers
  • 5 Stars
  • 215 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 7 Versions
  • 26 % Grown

The README.md

Simple MWS

package to help simplify requests to MWS. Heavily relys on GuzzleHttp., (*1)

Make sure to add the .env file in the root of your project, or add to your .env file, the following lines. There is also .env.example file included., (*2)

MWS_SELLER_ID=
MWS_MARKETPLACE_ID=
MWS_DEVELOPER_ACCOUNT_NUMBER=
MWS_SECRET_KEY=
MWS_SIGNATURE_METHOD=
MWS_SIGNATURE_VERSION=

AWS_ACCESS_KEY_ID=

Installation In Laravel with Composer

composer require ireisaac\mws

```php // in your config/app.php, (*3)

'providers' => [ ... IreIsaac\Mws\Support\MwsServiceProvider::class, ],, (*4)

'aliases' => [ ... 'Mws' => IreIsaac\Mws\Support\MwsFacade::class, ],, (*5)

### DON'T FORGET
after adding the service provider, in the root of your laravel project run:
```bash
php artisan vendor:publish

Laravel Example:

The goal is to be able to call any MWS operation as a static method and pass any query params needed/wanted as an associative array., (*6)

use Mws;
use Carbon\Carbon;

public function search($query)
{
    $response = Mws::listMatchingProducts(['Query' => $query]);

    return $response->xml();
}

public function orders()
{
    // Orders from the last week
    $response = Mws::ListOrders([
        'CreatedAfter' => Carbon::now()->subWeek()->toIso8601String()
    ]);

    return $response->xml();
}

Notice you can call operations formatted with the first letter capitalized (studly case), or lowercase (snake case)., (*7)

The Versions

03/02 2016

dev-master

9999999-dev

mws api

  Sources   Download

MIT

The Requires

 

by isaac

laravel amazon mws

15/09 2015

dev-dev

dev-dev

mws api

  Sources   Download

MIT

The Requires

 

by isaac

laravel amazon mws

13/09 2015

v0.0.3

0.0.3.0

mws api

  Sources   Download

MIT

The Requires

 

by isaac

laravel amazon mws

13/09 2015

v0.0.1

0.0.1.0

mws api

  Sources   Download

MIT

The Requires

 

by isaac

laravel amazon mws

13/09 2015

v0.0.2

0.0.2.0

mws api

  Sources   Download

MIT

The Requires

 

by isaac

laravel amazon mws

13/09 2015

0.0.2

0.0.2.0

mws api

  Sources   Download

MIT

The Requires

 

by isaac

laravel amazon mws

13/09 2015

0.0.1

0.0.1.0

mws api

  Sources   Download

MIT

The Requires

 

by isaac

laravel amazon mws