gaijinpot-apartments

0.0.3 • Public • Published

Gaijinpot Apartments

Simple read-only interface to http://apartments.gaijinpot.com/

Overview

This module allows you to query the gaijinpot apartments website for various information about apartments.

Installation

$ npm install gaijinpot-apartments

OR

$ git clone git://github.com/deoxxa/gaijinpot-apartments.git node_modules/gaijinpot-apartments

Usage

More documentation is pending, but take a look at this in the meantime.

#!/usr/bin/env node

var GaijinpotApartments = require("gaijinpot-apartments"),
    client = new GaijinpotApartments("http://apartments.gaijinpot.com/", "rentals");

// Getting information about a specific listing

apartments.get(1234, function(err, res) {
  if (err) {
    return console.log(err);
  }

  console.log(JSON.stringify(res, null, 2));
});

// Performing a search

apartments.search({order: 1}, function(err, res) {
  if (err) {
    return console.log(err);
  }

  console.log(JSON.stringify(res, null, 2));
});

License

3-clause BSD. A copy is included with the source.

Contact

Readme

Keywords

none

Package Sidebar

Install

npm i gaijinpot-apartments

Weekly Downloads

1

Version

0.0.3

License

none

Last publish

Collaborators

  • deoxxa