Socket
Book a DemoInstallSign in
Socket

affilinet-lookup

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

affilinet-lookup

A simple wrapper around the affilinet search products api

0.4.2
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

affilinet-lookup

Introduction

This module is a simple wrapper around the affilinet product search api.

Installation

npm install affilinet-lookup

Usage

affilinet-lookup -i <publisher id> -p <api password> -k <search keywords>

See affilinet-lookup --help for more information

Examples

Basic:

var affilinet = require('affilinet-lookup');

affilinet({keywords: 'test'})
  .id('publisher id')
  .key('publisher password')
  .done(function (err, result) { ... })

Limit to certain shops:

var affilinet = require('affilinet-lookup');

affilinet({keywords: 'test'})
  .id('publisher id')
  .key('publisher password')
  .shop('445') // T-mobile
  .shop('112') 
  .done(function (err, result) { ... })

Limit number of results:

var affilinet = require('affilinet-lookup');

affilinet({keywords: 'test'})
  .id('publisher id')
  .key('publisher password')
  .limit(5)
  .done(function (err, result) { ... }) // result.length === 5

"findOne":

var affilinet = require('affilinet-lookup');

affilinet({keywords: 'test'})
  .id('publisher id')
  .key('publisher password')
  .one()
  .done(function (err, result) { ... }) // result === null || typeof result === 'object' 

Change sorting order:

var affilinet = require('affilinet-lookup');

affilinet({keywords: 'test'})
  .id('publisher id')
  .key('publisher password')
  .sort('-price') // Descending price
  .done(function (err, result) { ... })

Dependencies

  • superagent
  • underscore
  • nomnom

License

MIT

Keywords

affilinet

FAQs

Package last updated on 31 Jul 2014

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.