gaijinpot-apartments

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

Gaijinpot Apartments

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

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

$ npm install gaijinpot-apartments

OR

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

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(errres) {
  if (err) {
    return console.log(err);
  }
 
  console.log(JSON.stringify(res, null, 2));
});
 
// Performing a search 
 
apartments.search({order: 1}, function(errres) {
  if (err) {
    return console.log(err);
  }
 
  console.log(JSON.stringify(res, null, 2));
});

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