Wondering what’s next for npm?Check out our public roadmap! »

    buscape-lookup

    0.8.0 • Public • Published

    buscape-lookup

    Introduction

    This module is a simple wrapper around buscape's lomadee publisher api for node.

    Dependencies

    Usage examples

    Full example:

    var buscape = require('buscape-lookup');
     
    buscape({keywords: 'test'})
      .id('api key')
      .price('120..560')
      .country('BR')
      .limit(5)
      .done(function (err, result) {
        console.log(JSON.stringify(result));
      });

    Limit to one result:

    var buscape = require('buscape-lookup');
     
    buscape({keywords: 'test'})
      .id('api key')
      .one()
      .done(function (err, result) {
        console.log(JSON.stringify(result));
      });

    Pass in keywords directly

    var buscape = require('buscape-lookup');
     
    buscape('test')
      .id('api key')
      .done(function (err, result) {
        console.log(JSON.stringify(result));
      });

    Add client IP address if calling on someone else's behalf

    var buscape = require('buscape-lookup');
     
    buscape('test')
      .id('api key')
      .client('192.168.1.1')
      .done(function (err, result) { ... })

    LICENSE

    MIT

    Install

    npm i buscape-lookup

    DownloadsWeekly Downloads

    3

    Version

    0.8.0

    License

    MIT

    Last publish

    Collaborators

    • avatar