Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14c571a
commit 5abfd93
Showing
1 changed file
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,32 @@ | ||
# Vacuum | ||
|
||
![vacuum] [1] | ||
[![Build Status](https://secure.travis-ci.org/hakanensari/vacuum-js.png)](http://travis-ci.org/hakanensari/vacuum-js) | ||
|
||
## Description | ||
|
||
Vacuum is a Node.js wrapper to the [Amazon Product Advertising API] | ||
[2]. | ||
Vacuum is a Node.js wrapper to the [Amazon Product Advertising API] [amazon]. | ||
|
||
![vacuum] [vacuum] | ||
|
||
## Usage | ||
|
||
This project is a stub as I dab my toes in Node.js waters. | ||
```coffee | ||
Vacuum = require '../src/vacuum' | ||
|
||
req = new Vacuum | ||
key: 'key' | ||
secret: 'secret' | ||
tag: 'tag' | ||
locale: 'uk' | ||
|
||
req | ||
.add | ||
operation: 'ItemSearch' | ||
keywords: 'Deleuze' | ||
searchIndex: 'All' | ||
.get (res) -> | ||
console.dir res.toObject() | ||
console.dir res.find 'Item' | ||
|
||
[1]: http://f.cl.ly/items/3s1S402E0v3j1g2A3O0R/vacuum.png | ||
[2]: https://affiliate-program.amazon.co.uk/gp/advertising/api/detail/main.html | ||
[vacuum]: http://f.cl.ly/items/2B3x363M3B3m3X0W2K3i/vacuum.png | ||
[amazon]: https://affiliate-program.amazon.co.uk/gp/advertising/api/detail/main.html |