Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AmazonMWSClient not defined? #2

Open
danfinlay opened this issue Nov 28, 2012 · 3 comments
Open

AmazonMWSClient not defined? #2

danfinlay opened this issue Nov 28, 2012 · 3 comments

Comments

@danfinlay
Copy link

I'm using your super simple example to start, but I'm getting:

ReferenceError: AmazonMwsClient is not defined

Any tips on getting around this? I've never tried to construct a prototype defined within a module before, so I don't know how to debug this.

@mfelix
Copy link

mfelix commented Nov 13, 2013

heya @FlySwatter, i'm new to node and the problem described here is what i'm stuck on. do you mind briefly explaining how you overcame this issue?

@danfinlay
Copy link
Author

Yeah this problem was surprisingly easy to get around, and looks like the latest version makes it even easier. Basically the README is wrong. The basic example should look like this:

var mws = require('mws'),
client = new mws.Client('accessKeyId', 'secretAccessKey', 'merchantId', {});

That's because AmazonMWSClient is a function internal to the mws module, and it exposes it on the Client key here.

You're welcome! I'll push this fix to eibbors.

@mfelix
Copy link

mfelix commented Nov 13, 2013

right on, thanks for the tip + + +

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants