linkshare-lookup
v0.3.4
Published
A simple wrapper around the linkshare merchandiser query api
Downloads
5
Readme
node-linkshare-lookup
Introduction
This module is a simple wrapper around the rakuten linkshare productsearch api.
Installation
npm install linkshare-lookup
Usage
linkshare-lookup -i <api key> -k <search keywords>
Examples
Basic:
var linkshare = require('linkshare-lookup');
linkshare({keywords: 'test'})
.id('id')
.done(function (err, result) { ... });
Select advertiser:
var linkshare = require('linkshare-lookup');
linkshare({keywords: 'test'})
.id('id')
.advertiser('13798')
.done(function (err, result) { ... });
Limit results:
var linkshare = require('linkshare-lookup');
linkshare({keywords: 'test'})
.id('id')
.limit(5)
.done(function (err, result) { ... });
Limit to only one result, a la mongodb findOne:
var linkshare = require('linkshare-lookup');
linkshare({keywords: 'test'})
.id('id')
.one()
.done(function (err, result) { ... });
Result has to include all keywords:
var linkshare = require('linkshare-lookup');
linkshare({keywords: 'test'})
.id('id')
.exact()
.done(function (err, result) { ... });
Dependencies
License
MIT