Socket
Book a DemoInstallSign in
Socket

linkshare-lookup

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkshare-lookup

A simple wrapper around the linkshare merchandiser query api

0.3.4
latest
Source
npmnpm
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • superagent
  • underscore
  • xml2js
  • nomnom

License

MIT

Keywords

linkshare

FAQs

Package last updated on 26 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.