sonnenglas / amazon-mws-laravel

A library to connect to Amazon's MWS web services in an object oriented manner
Apache License 2.0
64 stars 73 forks source link

The orders list error response is not readable. #44

Open developer-gurpreet opened 4 years ago

developer-gurpreet commented 4 years ago

I want to access the rawResponses -> body text, which is not accessible. please let me know how I can access the keys value?

Sonnenglas\AmazonMws\AmazonOrderList Object
(
    [orderList:Sonnenglas\AmazonMws\AmazonOrderList:private] => Array
        (
        )

    [i:Sonnenglas\AmazonMws\AmazonOrderList:private] => 0
    [tokenFlag:protected] => 
    [tokenUseFlag:protected] => 1
    [index:Sonnenglas\AmazonMws\AmazonOrderList:private] => 0
    [urlbase:protected] => https://mws.amazonservices.com/
    [urlbranch:protected] => Orders/2013-09-01
    [throttleLimit:protected] => 6
    [throttleTime:protected] => 60
    [throttleSafe:protected] => 
    [throttleGroup:protected] => ListOrders
    [throttleStop:protected] => 
    [storeName:protected] => amazon_sale
    [options:protected] => Array
        (
            [SellerId] => XXXXXXXXXXX
            [AWSAccessKeyId] => XXXXXXXXXXXXXX
            [SignatureVersion] => 2
            [SignatureMethod] => HmacSHA256
            [Version] => 2013-09-01
            [MarketplaceId.Id.1] => XXXXXXXX
            [MarketplaceId.Id.2] => XXXXXXXXXXX
            [MarketplaceId.Id.3] => XXXXXXXXXXXXX
            [LastUpdatedAfter] => 2020-03-19T03:37:19+0000
            [LastUpdatedBefore] => 2020-03-19T15:35:19+0000
            [FulfillmentChannel.Channel.1] => MFN
            [OrderStatus.Status.1] => Unshipped
            [OrderStatus.Status.2] => PartiallyShipped
            [Action] => ListOrders
            [Timestamp] => 2020-03-19T15:37:19+0000
            [Signature] => CCCCCCCCCCCCCCCCCCCCCCCC
        )

    [config:protected] => 
    [mockMode:protected] => 
    [mockFiles:protected] => 
    [mockIndex:protected] => 0
    [env:protected] => G:\xampp\htdocs\fishbowl\vendor\sonnenglas\laravel5-amazon-mws\src/environment.php
    [rawResponses:protected] => Array
        (
            [0] => Array
                (
                    [head] => HTTP/1.1 403 Forbidden
Server: Server
Date: Thu, 19 Mar 2020 15:39:19 GMT
Content-Type: text/xml
Content-Length: 460
Connection: keep-alive
x-mws-request-id: 06ba3b63-ebc4-4904-94d9-ce7f070a1858
x-mws-timestamp: 2020-03-19T15:39:19.734Z
x-mws-response-context: 8pAUXVO4u+fmD0/3F8rfd0JpS3ZP4YQC6ngxTyXcaTnq2OonjTTx7oSQGgU+gIV6rk2iXzbHHAo=
x-amz-rid: 2Q4BYKP46FXMKSZ26GW5
Vary: Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent
                    [body] => 

    Sender
    SignatureDoesNotMatch
    The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.

  06ba3b63-ebc4-4904-94d9-ce7f070a1858

                    [code] => 403
                    [answer] => Forbidden
                    [error] => Forbidden
                    [ok] => 0
                    [headarray] => Array
                        (
                            [Server] => Server
                            [Date] => Thu, 19 Mar 2020 15:39:19 GMT
                            [Content-Type] => text/xml
                            [Content-Length] => 460
                            [Connection] => keep-alive
                            [x-mws-request-id] => 06ba3b63-ebc4-4904-94d9-ce7f070a1858
                            [x-mws-timestamp] => 2020-03-19T15:39:19.734Z
                            [x-mws-response-context] => 8pAUXVO4u+fmD0/3F8rfd0JpS3ZP4YQC6ngxTyXcaTnq2OonjTTx7oSQGgU+gIV6rk2iXzbHHAo=
                            [x-amz-rid] => 2Q4BYKP46FXMKSZ26GW5
                            [Vary] => Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent
                        )

                )

        )

)