Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0c8e67

Browse files
author
clousale
authored
Merge pull request clousale#4 from rodrigojob/master
Add Signature in request
2 parents 2662833 + 204cdbf commit f0c8e67

39 files changed

+1776
-850
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ You can find general information about the Amazon Selling Partner API on [the of
2929

3030
# Notes
3131

32-
If you're looking for a complete Repricing & FBA-Reimbursement solution, you might want to consider giving [ClouSale.com](https://www.clousale.com) a shot.
32+
If you're looking for a complete Repricing & FBA-Reimbursement solution, you might want to consider giving [ClouSale.com](https://www.clousale.com) a shot.
33+
34+
# Thanks
35+
36+
Thanks go out to everybody who added PRs and worked on this package:
37+
38+
- [rodrigojob](https://www.github.com/rodrigojob)

docs/Api/CatalogApi.md

+24-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Method | HTTP request | Description
1212
> \Swagger\Client\Models\GetCatalogItemResponse getCatalogItem($marketplace_id, $asin)
1313
1414

15-
1615
Returns a specified item and its attributes.
1716

1817
**Usage Plan:**
@@ -26,10 +25,17 @@ Returns a specified item and its attributes.
2625
<?php
2726
require_once(__DIR__ . '/vendor/autoload.php');
2827

28+
$config = Swagger\Client\Configuration::getDefaultConfiguration();
29+
$config->setAccessToken('Atza|IwEBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //access token of Selling Partner
30+
$config->setApiKey("accessKey", 'AKIA2xxxxxxxxxxxxx'); // Access Key of IAM
31+
$config->setApiKey("secretKey", '94U4Gi81Tpxxxxxxxxxxxxxxx'); // Secret Key of IAM
32+
$config->setApiKey("region", 'us-east-1'); //region of MarketPlace country
33+
2934
$apiInstance = new Swagger\Client\Api\CatalogApi(
3035
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
3136
// This is optional, `GuzzleHttp\Client` will be used as default.
32-
new GuzzleHttp\Client()
37+
new GuzzleHttp\Client(),
38+
$config
3339
);
3440
$marketplace_id = "marketplace_id_example"; // string | A marketplace identifier. Specifies the marketplace for the item.
3541
$asin = "asin_example"; // string | The Amazon Standard Identification Number (ASIN) of the item.
@@ -83,10 +89,17 @@ Returns the parent categories to which an item belongs, based on the specified A
8389
<?php
8490
require_once(__DIR__ . '/vendor/autoload.php');
8591

92+
$config = Swagger\Client\Configuration::getDefaultConfiguration();
93+
$config->setAccessToken('Atza|IwEBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //access token of Selling Partner
94+
$config->setApiKey("accessKey", 'AKIA2xxxxxxxxxxxxx'); // Access Key of IAM
95+
$config->setApiKey("secretKey", '94U4Gi81Tpxxxxxxxxxxxxxxx'); // Secret Key of IAM
96+
$config->setApiKey("region", 'us-east-1'); //region of MarketPlace country
97+
8698
$apiInstance = new Swagger\Client\Api\CatalogApi(
8799
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
88100
// This is optional, `GuzzleHttp\Client` will be used as default.
89-
new GuzzleHttp\Client()
101+
new GuzzleHttp\Client(),
102+
$config
90103
);
91104
$marketplace_id = "marketplace_id_example"; // string | A marketplace identifier. Specifies the marketplace for the item.
92105
$asin = "asin_example"; // string | The Amazon Standard Identification Number (ASIN) of the item.
@@ -142,10 +155,17 @@ Returns a list of items and their attributes, based on a search query or item id
142155
<?php
143156
require_once(__DIR__ . '/vendor/autoload.php');
144157

158+
$config = Swagger\Client\Configuration::getDefaultConfiguration();
159+
$config->setAccessToken('Atza|IwEBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //access token of Selling Partner
160+
$config->setApiKey("accessKey", 'AKIA2xxxxxxxxxxxxx'); // Access Key of IAM
161+
$config->setApiKey("secretKey", '94U4Gi81Tpxxxxxxxxxxxxxxx'); // Secret Key of IAM
162+
$config->setApiKey("region", 'us-east-1'); //region of MarketPlace country
163+
145164
$apiInstance = new Swagger\Client\Api\CatalogApi(
146165
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
147166
// This is optional, `GuzzleHttp\Client` will be used as default.
148-
new GuzzleHttp\Client()
167+
new GuzzleHttp\Client(),
168+
$config
149169
);
150170
$marketplace_id = "marketplace_id_example"; // string | A marketplace identifier. Specifies the marketplace for which items are returned.
151171
$query = "query_example"; // string | Keyword(s) to use to search for items in the catalog. Example: 'harry potter books'.

docs/Api/DefaultApi.md

+32-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,17 @@ Returns financial event groups for a given date range.
2727
<?php
2828
require_once(__DIR__ . '/vendor/autoload.php');
2929

30+
$config = Swagger\Client\Configuration::getDefaultConfiguration();
31+
$config->setAccessToken('Atza|IwEBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //access token of Selling Partner
32+
$config->setApiKey("accessKey", 'AKIA2xxxxxxxxxxxxx'); // Access Key of IAM
33+
$config->setApiKey("secretKey", '94U4Gi81Tpxxxxxxxxxxxxxxx'); // Secret Key of IAM
34+
$config->setApiKey("region", 'us-east-1'); //region of MarketPlace country
35+
3036
$apiInstance = new Swagger\Client\Api\DefaultApi(
3137
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
3238
// This is optional, `GuzzleHttp\Client` will be used as default.
33-
new GuzzleHttp\Client()
39+
new GuzzleHttp\Client(),
40+
$config
3441
);
3542
$max_results_per_page = 100; // int | The maximum number of results to return per page.
3643
$financial_event_group_started_before = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | A date used for selecting financial event groups that opened before (but not at) a specified date and time, in ISO 8601 format. The date-time must be later than FinancialEventGroupStartedAfter and no later than two minutes before the request was submitted. If FinancialEventGroupStartedAfter and FinancialEventGroupStartedBefore are more than 180 days apart, no financial event groups are returned.
@@ -88,10 +95,17 @@ Returns financial events for the specified data range.
8895
<?php
8996
require_once(__DIR__ . '/vendor/autoload.php');
9097

98+
$config = Swagger\Client\Configuration::getDefaultConfiguration();
99+
$config->setAccessToken('Atza|IwEBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //access token of Selling Partner
100+
$config->setApiKey("accessKey", 'AKIA2xxxxxxxxxxxxx'); // Access Key of IAM
101+
$config->setApiKey("secretKey", '94U4Gi81Tpxxxxxxxxxxxxxxx'); // Secret Key of IAM
102+
$config->setApiKey("region", 'us-east-1'); //region of MarketPlace country
103+
91104
$apiInstance = new Swagger\Client\Api\DefaultApi(
92105
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
93106
// This is optional, `GuzzleHttp\Client` will be used as default.
94-
new GuzzleHttp\Client()
107+
new GuzzleHttp\Client(),
108+
$config
95109
);
96110
$max_results_per_page = 100; // int | The maximum number of results to return per page.
97111
$posted_after = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | A date used for selecting financial events posted after (or at) a specified time. The date-time must be no later than two minutes before the request was submitted, in ISO 8601 date time format.
@@ -149,10 +163,17 @@ Returns all financial events for the specified financial event group.
149163
<?php
150164
require_once(__DIR__ . '/vendor/autoload.php');
151165

166+
$config = Swagger\Client\Configuration::getDefaultConfiguration();
167+
$config->setAccessToken('Atza|IwEBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //access token of Selling Partner
168+
$config->setApiKey("accessKey", 'AKIA2xxxxxxxxxxxxx'); // Access Key of IAM
169+
$config->setApiKey("secretKey", '94U4Gi81Tpxxxxxxxxxxxxxxx'); // Secret Key of IAM
170+
$config->setApiKey("region", 'us-east-1'); //region of MarketPlace country
171+
152172
$apiInstance = new Swagger\Client\Api\DefaultApi(
153173
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
154174
// This is optional, `GuzzleHttp\Client` will be used as default.
155-
new GuzzleHttp\Client()
175+
new GuzzleHttp\Client(),
176+
$config
156177
);
157178
$event_group_id = "event_group_id_example"; // string | The identifier of the financial event group to which the events belong.
158179
$max_results_per_page = 100; // int | The maximum number of results to return per page.
@@ -208,10 +229,17 @@ Returns all financial events for the specified order.
208229
<?php
209230
require_once(__DIR__ . '/vendor/autoload.php');
210231

232+
$config = Swagger\Client\Configuration::getDefaultConfiguration();
233+
$config->setAccessToken('Atza|IwEBxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //access token of Selling Partner
234+
$config->setApiKey("accessKey", 'AKIA2xxxxxxxxxxxxx'); // Access Key of IAM
235+
$config->setApiKey("secretKey", '94U4Gi81Tpxxxxxxxxxxxxxxx'); // Secret Key of IAM
236+
$config->setApiKey("region", 'us-east-1'); //region of MarketPlace country
237+
211238
$apiInstance = new Swagger\Client\Api\DefaultApi(
212239
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
213240
// This is optional, `GuzzleHttp\Client` will be used as default.
214-
new GuzzleHttp\Client()
241+
new GuzzleHttp\Client(),
242+
$config
215243
);
216244
$order_id = "order_id_example"; // string | An Amazon-defined order identifier, in 3-7-7 format.
217245
$max_results_per_page = 100; // int | The maximum number of results to return per page.

0 commit comments

Comments
 (0)