<?php
|
/**
|
* Created by PhpStorm.
|
* User: Administrator
|
* Date: 2024/11/12
|
* Time: 15:40
|
*/
|
include __DIR__ . '/vendor/autoload.php';
|
|
|
/** The Setup **/
|
|
$config = [
|
//Guzzle configuration
|
'http' => [
|
'verify' => false, //<--- NOT SAFE FOR PRODUCTION
|
'debug' => true //<--- NOT SAFE FOR PRODUCTION
|
],
|
|
//LWA: Keys needed to obtain access token from Login With Amazon Service
|
'refresh_token' => '<YOUR-REFRESH-TOKEN>',
|
'client_id' => '<CLINET-ID-IN-SELLER-CONSOLE>',
|
'client_secret' => '<CLIENT_SECRET>',
|
|
//STS: Keys of the IAM role which are needed to generate Secure Session
|
// (a.k.a Secure token) for accessing and assuming the IAM role
|
'access_key' => '<STS-ACCESS_KEY>',
|
'secret_key' => '<STS-SECRET-KEY>',
|
'role_arn' => '<ROLE-ARN>' ,
|
|
//API: Actual configuration related to the SP API :)
|
'region' => 'eu-west-1',
|
'host' => 'sellingpartnerapi-eu.amazon.com'
|
];
|