Skip to content

Commit

Permalink
Updated ReadMe, Additions to Products, Bugfixes
Browse files Browse the repository at this point in the history
Bugfixed the feeds.js submit feed request.
Added Get My Price for SKU and ASIN to products.
  • Loading branch information
Swiddow committed Jun 11, 2013
1 parent 88dcdf7 commit 535ed6b
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 3 deletions.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
mws-js
======

This is a continuation of the continuation of this code. I have made changes to the
explicit .js files, as I do not use coffee script. I have fixed some of the bugs with
the feed upload, core file, and FBA API requests. Note: I have not made any changes to
the .coffee files in this library.

This is a continuation of the unstable branch of https://github.com/eibbors/mws-js .
While having very nice ideas, it was incomplete and a bit buggy.
I needed only the products, orders and feeds APIs, so I have no idea what is the status
Expand All @@ -17,7 +22,25 @@ should work fine and dandy like cotton candy.
Usage
=====

Simple example
.js Example
-------------
Fetching a product info:
```javascript
var mws = require('./mws-js');
client = new mws.products.Client(loginCredentials);

client.getMatchingProductForId('ASIN', B005ISQ7JC, function(res){
if (res.error) {
console.error(res.error);
} else if (res.result) {
console.log(res.result);
}
});

```


Coffee Script example
--------------
Fetching a product info:
```
Expand All @@ -32,4 +55,5 @@ client.getMatchingProductForId 'ASIN', ASIN_ID , (res) =>
```


You can have a look at test directory for more examples.
4 changes: 2 additions & 2 deletions lib/feeds.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions lib/products.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 535ed6b

Please sign in to comment.