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

Skip to content

Commit 4fdbd81

Browse files
author
clousale
authored
Merge pull request clousale#20 from clousale/fix-signature
AWS Dependency, Signature & Compatibility
2 parents f05eced + 4386497 commit 4fdbd81

File tree

748 files changed

+11453
-21703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

748 files changed

+11453
-21703
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is an API Binding in PHP for the new Amazon Selling Partner API.
44

55
This library is based on the output of `swagger-codegen` with the [OpenAPI files provided by Amazon](https://github.com/amzn/selling-partner-api-models/tree/main/models) and has been modified by the contributors.
66

7-
The purpose of this package is to have an easy way of getting started with the Amazon Selling Partner API through a simple composer package
7+
The purpose of this package is to have an easy way of getting started with the Amazon Selling Partner API through a simple composer package.
88

99
# Requirements
1010

@@ -25,15 +25,15 @@ composer require clousale/amazon-sp-api-php
2525

2626
You can find detailed documentation for this PHP Library in the [`docs/Api` directory](https://github.com/clousale/amazon-sp-api-php/tree/master/docs/Api) (Please note: Namespaces and other classes could have been changed)
2727

28-
You can find general information about the Amazon Selling Partner API on [the official Amazon Developer Website](https://developer.amazonservices.com)
28+
You can find general information about the Amazon Selling Partner API on [the official Amazon Developer Website](https://developer.amazonservices.com).
2929

3030
# Examples
3131

3232
These are simple examples, just to show you how to get started calling the API.
3333

3434
## IAM Role
3535

36-
For when you entered the IAM Role ARN in your developer profile
36+
For when you entered the IAM Role ARN in your developer profile:
3737

3838
```php
3939
<?php

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"ext-curl": "*",
2222
"ext-json": "*",
2323
"ext-mbstring": "*",
24-
"guzzlehttp/guzzle": "^6.2",
25-
"aws/aws-sdk-php": "^3.172"
24+
"guzzlehttp/guzzle": "^6.2|^7.0"
2625
},
2726
"require-dev": {
2827
"roave/security-advisories": "dev-master",

lib/Api/AuthorizationApi.php

+10-31
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<?php
22
/**
3-
* AuthorizationApi
4-
* PHP version 5.
3+
* AuthorizationApi.
54
*
6-
* @category Class
7-
*
8-
* @author Swagger Codegen team
9-
*
10-
* @see https://github.com/swagger-api/swagger-codegen
5+
* @author Stefan Neuhaus / ClouSale
116
*/
127

138
/**
@@ -16,36 +11,24 @@
1611
* The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization.
1712
*
1813
* OpenAPI spec version: v1
19-
*
20-
* Generated by: https://github.com/swagger-api/swagger-codegen.git
21-
* Swagger Codegen version: 3.0.20
22-
*/
23-
/**
24-
* NOTE: This class is auto generated by the swagger code generator program.
25-
* https://github.com/swagger-api/swagger-codegen
26-
* Do not edit the class manually.
2714
*/
2815

2916
namespace ClouSale\AmazonSellingPartnerAPI\Api;
3017

31-
use GuzzleHttp\Client;
32-
use GuzzleHttp\ClientInterface;
33-
use InvalidArgumentException;
3418
use ClouSale\AmazonSellingPartnerAPI\ApiException;
3519
use ClouSale\AmazonSellingPartnerAPI\Configuration;
3620
use ClouSale\AmazonSellingPartnerAPI\HeaderSelector;
3721
use ClouSale\AmazonSellingPartnerAPI\Helpers\SellingPartnerApiRequest;
3822
use ClouSale\AmazonSellingPartnerAPI\Models\Authorization\GetAuthorizationCodeResponse;
3923
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
24+
use GuzzleHttp\Client;
25+
use GuzzleHttp\ClientInterface;
26+
use InvalidArgumentException;
4027

4128
/**
4229
* AuthorizationApi Class Doc Comment.
4330
*
44-
* @category Class
45-
*
46-
* @author Swagger Codegen team
47-
*
48-
* @see https://github.com/swagger-api/swagger-codegen
31+
* @author Stefan Neuhaus / ClouSale
4932
*/
5033
class AuthorizationApi
5134
{
@@ -66,12 +49,8 @@ class AuthorizationApi
6649
*/
6750
protected $headerSelector;
6851

69-
/**
70-
* @param ClientInterface $client
71-
* @param Configuration $config
72-
* @param HeaderSelector $selector
73-
*/
74-
public function __construct(Configuration $config) {
52+
public function __construct(Configuration $config)
53+
{
7554
$this->client = new Client();
7655
$this->config = $config;
7756
$this->headerSelector = new HeaderSelector();
@@ -95,7 +74,7 @@ public function getConfig()
9574
* @param string $mws_auth_token The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. (required)
9675
*
9776
* @throws InvalidArgumentException
98-
* @throws ApiException on non-2xx response
77+
* @throws ApiException on non-2xx response
9978
*
10079
* @return GetAuthorizationCodeResponse
10180
*/
@@ -116,7 +95,7 @@ public function getAuthorizationCode($selling_partner_id, $developer_id, $mws_au
11695
* @param string $mws_auth_token The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. (required)
11796
*
11897
* @throws InvalidArgumentException
119-
* @throws ApiException on non-2xx response
98+
* @throws ApiException on non-2xx response
12099
*
121100
* @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Authorization\GetAuthorizationCodeResponse, HTTP status code, HTTP response headers (array of strings)
122101
*/

lib/Api/CatalogApi.php

+9-30
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
<?php
22
/**
3-
* CatalogApi
4-
* PHP version 5.
3+
* CatalogApi.
54
*
6-
* @category Class
7-
*
8-
* @author Swagger Codegen team
9-
*
10-
* @see https://github.com/swagger-api/swagger-codegen
5+
* @author Stefan Neuhaus / ClouSale
116
*/
127

138
/**
@@ -16,22 +11,10 @@
1611
* The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
1712
*
1813
* OpenAPI spec version: v0
19-
*
20-
* Generated by: https://github.com/swagger-api/swagger-codegen.git
21-
* Swagger Codegen version: 3.0.20
22-
*/
23-
/**
24-
* NOTE: This class is auto generated by the swagger code generator program.
25-
* https://github.com/swagger-api/swagger-codegen
26-
* Do not edit the class manually.
2714
*/
2815

2916
namespace ClouSale\AmazonSellingPartnerAPI\Api;
3017

31-
use GuzzleHttp\Client;
32-
use GuzzleHttp\ClientInterface;
33-
use GuzzleHttp\Psr7\Request;
34-
use InvalidArgumentException;
3518
use ClouSale\AmazonSellingPartnerAPI\ApiException;
3619
use ClouSale\AmazonSellingPartnerAPI\Configuration;
3720
use ClouSale\AmazonSellingPartnerAPI\HeaderSelector;
@@ -40,15 +23,15 @@
4023
use ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ListCatalogCategoriesResponse;
4124
use ClouSale\AmazonSellingPartnerAPI\Models\Catalog\ListCatalogItemsResponse;
4225
use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer;
26+
use GuzzleHttp\Client;
27+
use GuzzleHttp\ClientInterface;
28+
use GuzzleHttp\Psr7\Request;
29+
use InvalidArgumentException;
4330

4431
/**
4532
* CatalogApi Class Doc Comment.
4633
*
47-
* @category Class
48-
*
49-
* @author Swagger Codegen team
50-
*
51-
* @see https://github.com/swagger-api/swagger-codegen
34+
* @author Stefan Neuhaus / ClouSale
5235
*/
5336
class CatalogApi
5437
{
@@ -69,12 +52,8 @@ class CatalogApi
6952
*/
7053
protected $headerSelector;
7154

72-
/**
73-
* @param ClientInterface $client
74-
* @param Configuration $config
75-
* @param HeaderSelector $selector
76-
*/
77-
public function __construct(Configuration $config) {
55+
public function __construct(Configuration $config)
56+
{
7857
$this->client = new Client();
7958
$this->config = $config;
8059
$this->headerSelector = new HeaderSelector();

0 commit comments

Comments
 (0)