brickfox / mws Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://developer.amazonservices.com/
License: Apache License 2.0
Home Page: https://developer.amazonservices.com/
License: Apache License 2.0
This covers sellers having MFN Prime fulfillment and Business accounts.
<IsBusinessOrder>false</IsBusinessOrder>
<IsPrime>false</IsPrime>
<IsPremiumOrder>false</IsPremiumOrder>
http://docs.developer.amazonservices.com/en_US/orders-2013-09-01/Orders_GetOrder.html
Hi there,
first of all thanks for this library.
I run into a problem when listing order items (ListOrderItems
).
My problem only affects one special order with Gift Message Text (<GiftMessageText />
tag on XML).
I believe the text inside this tag contains a \r\n\r\n
which in this case breaks the logic.
Check line 531 on the Client.php:
https://github.com/brickfox/mws/blob/master/src/MarketplaceWebServiceOrders/Client.php#L531
XML (redacted):
<?xml version="1.0"?>
<ListOrderItemsResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
<ListOrderItemsResult>
<OrderItems>
<OrderItem>
<QuantityOrdered>1</QuantityOrdered>
<Title>XXXX</Title>
<ShippingTax>
<CurrencyCode>EUR</CurrencyCode>
<Amount>0.00</Amount>
</ShippingTax>
<PromotionDiscount>
<CurrencyCode>EUR</CurrencyCode>
<Amount>0.00</Amount>
</PromotionDiscount>
<GiftMessageText>First line --> \r\n\r\n <-- Second line</GiftMessageText>
<ASIN>xxxx</ASIN>
<SellerSKU>xxxx</SellerSKU>
<OrderItemId>xxx</OrderItemId>
<QuantityShipped>1</QuantityShipped>
<ShippingPrice>
<CurrencyCode>EUR</CurrencyCode>
<Amount>2.99</Amount>
</ShippingPrice>
<ItemPrice>
<CurrencyCode>EUR</CurrencyCode>
<Amount>44.90</Amount>
</ItemPrice>
<ItemTax>
<CurrencyCode>EUR</CurrencyCode>
<Amount>0.00</Amount>
</ItemTax>
<ShippingDiscount>
<CurrencyCode>EUR</CurrencyCode>
<Amount>0.00</Amount>
</ShippingDiscount>
</OrderItem>
</OrderItems>
<AmazonOrderId>xxxx</AmazonOrderId>
</ListOrderItemsResult>
<ResponseMetadata>
<RequestId>xxxx</RequestId>
</ResponseMetadata>
</ListOrderItemsResponse>
It would be really nice if this had PSR-4 autoloading. Does anyone know if there has been a fork that converted to PSR-4? I've been working on it, and it could take many hours, so thought I'd ask.
Edit: I realize there is a generator for this code, and perhaps having access to the generator would allow me and others to make changes like going with PSR4 namespaces/autoloading.
How can I use Recommendations API with this library?
CURLOPT_SSL_VERIFYPEER, CURLOPT_SSL_VERIFYHOST and CURLOPT_HTTPHEADER should be set from $config-array instead of hard coded in MarketplaceWebService_Client
Hey,
has someone a working example for paginating the MarketplaceWebServiceOrders listOrders or listOrderItems request? The sample is just copy pasted from the normal request sample and won't work (it's not even logical).
It's also hard to just create a while loop because someone at Amazon decided to create different named classes and function names for the paginated request and response (WTF).
I am curious how other people implemented the pagination functionality.
Seriously, who at Amazon thought this is a good SDK design?
Do you planed add method getLowestPricedOffersForASIN ?
http://docs.developer.amazonservices.com/en_US/products/Products_GetLowestPricedOffersForASIN.html
CreateFulfillmentReturnRequest.php
CreateFulfillmentReturnResponse.php
CreateFulfillmentReturnResult.php
and 14 others are missing in FBAOutboundServiceMWS/Model are missing.
This library help me to develop the project fast and easy.
Is there no Model to calculate the estimated fee?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.