Skip to content
Sensis API node.js client
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
.bob.json
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
package.json

README.md

sapi http://travis-ci.org/cliffano/sapi

Sensis API Node.js client

Installation

npm install sapi

or as a dependency in package.json file:

"dependencies": {
  "sapi": "x.y.z"
}

Usage

var sapi = require('sapi'),
  s = new sapi('key', 'http://sapi/version/env/');

s.query('restaurant').location('222 Lonsdale St, Melbourne, VIC 3000').search(function (err, result) {
  if (err) {
    console.error(err);
  } else {
    console.log(require('util').inspect(result));
  }
});
Something went wrong with that request. Please try again.