New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc