From 16e9ea28f2997bd1eb4472f9d07a1c5e1e7d8624 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 12 Nov 2013 19:12:40 -0800 Subject: [PATCH] Corrected sample code The AmazonMWSClient function is made available through the `Client` key of the mws module, I simply reflected that in the README. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1c38fd..ead45bb 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ the most basic usage I could come up with goes something like: ```javascript var mws = require('mws'), - client = new AmazonMwsClient('accessKeyId', 'secretAccessKey', 'merchantId', {}); + client = new mws.Client('accessKeyId', 'secretAccessKey', 'merchantId', {}); // Get the service status of Sellers API endpoint and print it client.invoke(new mws.sellers.requests.GetServiceStatus(), console.log); @@ -33,4 +33,4 @@ client.invoke(listOrders, function(result) { console.log(result); // Do something fun with the results... }); -``` \ No newline at end of file +```